Uses of Interface
org.osgi.util.promise.Promise
Packages that use Promise
Package
Description
Asynchronous Services Package Version 1.0.
Asynchronous Services Delegation Package Version 1.0.
Service Component Runtime Package Version 1.4.
Repository Service Package Version 1.1.
Promise Package Version 1.1.
Push Stream Package Version 1.0.
-
Uses of Promise in org.osgi.service.async
Methods in org.osgi.service.async that return PromiseModifier and TypeMethodDescriptionPromise
<?> Async.call()
Invoke the last method call registered by a mediated object as an asynchronous task.<R> Promise
<R> Async.call
(R r) Invoke the last method call registered by a mediated object as an asynchronous task.Async.execute()
Invoke the last method call registered by a mediated object as a "fire-and-forget" asynchronous task. -
Uses of Promise in org.osgi.service.async.delegate
Methods in org.osgi.service.async.delegate that return Promise -
Uses of Promise in org.osgi.service.component.runtime
Methods in org.osgi.service.component.runtime that return PromiseModifier and TypeMethodDescriptionServiceComponentRuntime.disableComponent
(ComponentDescriptionDTO description) Disables the specified component description.ServiceComponentRuntime.enableComponent
(ComponentDescriptionDTO description) Enables the specified component description. -
Uses of Promise in org.osgi.service.repository
Methods in org.osgi.service.repository that return PromiseModifier and TypeMethodDescriptionPromise
<Collection<org.osgi.resource.Resource>> Repository.findProviders
(RequirementExpression expression) Find the resources that match the specified requirement expression. -
Uses of Promise in org.osgi.util.promise
Methods in org.osgi.util.promise that return PromiseModifier and TypeMethodDescriptionPromiseFactory.all
(Collection<Promise<S>> promises) Returns a new Promise that is a latch on the resolution of the specified Promises.Promises.all
(Collection<Promise<S>> promises) Returns a new Promise that is a latch on the resolution of the specified Promises.Returns a new Promise that is a latch on the resolution of the specified Promises.Success callback for a Promise.Promise.delay
(long milliseconds) Delay after the resolution of this Promise.<T> Promise
<T> Returns a new Promise that has been resolved with the specified failure.static <T> Promise
<T> Returns a new Promise that has been resolved with the specified failure.Promise.fallbackTo
(Promise<? extends T> fallback) Fall back to the value of the specified Promise if this Promise fails.Filter the value of this Promise.<R> Promise
<R> FlatMap the value of this Promise.Deferred.getPromise()
Returns the Promise associated with this Deferred.<R> Promise
<R> Map the value of this Promise.Register a callback to be called with the failure for this Promise when this Promise is resolved with a failure.Register a callback to be called when this Promise is resolved.Register a callback to be called with the result of this Promise when this Promise is resolved successfully.Recover from a failure of this Promise with a recovery value.Promise.recoverWith
(Function<Promise<?>, Promise<? extends T>> recovery) Recover from a failure of this Promise with a recovery Promise.<T> Promise
<T> PromiseFactory.resolved
(T value) Returns a new Promise that has been resolved with the specified value.static <T> Promise
<T> Promises.resolved
(T value) Returns a new Promise that has been resolved with the specified value.Deferred.resolveWith
(Promise<? extends T> with) Resolve the Promise associated with this Deferred with the specified Promise.<T> Promise
<T> Returns a new Promise that will hold the result of the specified task.<R> Promise
<R> Chain a new Promise to this Promise with a Success callback.<R> Promise
<R> Chain a new Promise to this Promise with Success and Failure callbacks.Promise.thenAccept
(Consumer<? super T> consumer) Chain a new Promise to this Promise with a Consumer callback that receives the value of this Promise when it is successfully resolved.Promise.timeout
(long milliseconds) Time out the resolution of this Promise.Methods in org.osgi.util.promise that return types with arguments of type PromiseModifier and TypeMethodDescriptionCollection
<Promise<?>> FailedPromisesException.getFailedPromises()
Returns the collection of Promises that have been resolved with a failure.Methods in org.osgi.util.promise with parameters of type PromiseModifier and TypeMethodDescriptionReturns a new Promise that is a latch on the resolution of the specified Promises.Success callback for a Promise.void
Failure callback for a Promise.Promise.fallbackTo
(Promise<? extends T> fallback) Fall back to the value of the specified Promise if this Promise fails.Deferred.resolveWith
(Promise<? extends T> with) Resolve the Promise associated with this Deferred with the specified Promise.Method parameters in org.osgi.util.promise with type arguments of type PromiseModifier and TypeMethodDescriptionPromiseFactory.all
(Collection<Promise<S>> promises) Returns a new Promise that is a latch on the resolution of the specified Promises.Promises.all
(Collection<Promise<S>> promises) Returns a new Promise that is a latch on the resolution of the specified Promises.<R> Promise
<R> FlatMap the value of this Promise.Recover from a failure of this Promise with a recovery value.Promise.recoverWith
(Function<Promise<?>, Promise<? extends T>> recovery) Recover from a failure of this Promise with a recovery Promise.Promise.recoverWith
(Function<Promise<?>, Promise<? extends T>> recovery) Recover from a failure of this Promise with a recovery Promise.Constructor parameters in org.osgi.util.promise with type arguments of type PromiseModifierConstructorDescriptionFailedPromisesException
(Collection<Promise<?>> failed, Throwable cause) Create a new FailedPromisesException with the specified Promises. -
Uses of Promise in org.osgi.util.pushstream
Methods in org.osgi.util.pushstream that return PromiseModifier and TypeMethodDescriptionCloses the channel and resolve the promise with false when the predicate does not matches a pay load.Close the channel and resolve the promise with true when the predicate matches a payload.<R,
A> Promise <R> See Stream.SimplePushEventSource.connectPromise()
This method can be used to delay event generation until an event source has connected.PushStream.count()
See Stream.PushStream.findAny()
Close the channel and resolve the promise with the first element.PushStream.findFirst()
Close the channel and resolve the promise with the first element.Execute the action for each event received until the channel is closed.PushStream.forEachEvent
(PushEventConsumer<? super T> action) Pass on each event to another consumer until the stream is closed.PushStream.max
(Comparator<? super T> comparator) See Stream.PushStream.min
(Comparator<? super T> comparator) See Stream.Closes the channel and resolve the promise with false when the predicate matches any pay load.PushStream.reduce
(BinaryOperator<T> accumulator) Standard reduce without identity, so the return is an Optional.PushStream.reduce
(T identity, BinaryOperator<T> accumulator) Standard reduce, see Stream.<U> Promise
<U> PushStream.reduce
(U identity, BiFunction<U, ? super T, U> accumulator, BinaryOperator<U> combiner) Standard reduce with identity, accumulator and combiner.PushStream.toArray()
Collect the payloads in an Object array after the channel is closed.PushStream.toArray
(IntFunction<A[]> generator) Collect the payloads in an Object array after the channel is closed.Method parameters in org.osgi.util.pushstream with type arguments of type Promise