Interface | Description |
---|---|
Failure |
Failure callback for a Promise.
|
Promise<T> |
A Promise of a value.
|
Success<T,R> |
Success callback for a Promise.
|
Class | Description |
---|---|
Deferred<T> |
A Deferred Promise resolution.
|
PromiseImpl<T> |
Promise implementation.
|
PromiseImpl.Chain<R> |
A callback used to resolve the chained Promise when the Promise promise
is resolved.
|
PromiseImpl.FallbackTo<T> |
A callback used by the
PromiseImpl.fallbackTo(Promise) method. |
PromiseImpl.Filter<T> |
A callback used by the
PromiseImpl.filter(Predicate) method. |
PromiseImpl.FlatMap<T,R> |
A callback used by the
PromiseImpl.flatMap(Function) method. |
PromiseImpl.Logger |
Use the lazy initialization holder class idiom to delay creating a Logger
until we actually need it.
|
PromiseImpl.Map<T,R> |
A callback used by the
PromiseImpl.map(Function) method. |
PromiseImpl.Recover<T> |
A callback used by the
PromiseImpl.recover(Function) method. |
PromiseImpl.RecoverWith<T> |
A callback used by the
PromiseImpl.recoverWith(Function) method. |
Promises |
Static helper methods for
Promise s. |
Promises.All<T> |
A callback used to resolve a Promise when the specified list of Promises
are resolved for the
Promises.all(Collection) method. |
Exception | Description |
---|---|
FailedPromisesException |
Promise failure exception for a collection of failed Promises.
|
Bundles wishing to use this package must list the package in the Import-Package header of the bundle's manifest.
Example import for consumers using the API in this package:
Import-Package: org.osgi.util.promise; version="[1.0,2.0)"
Example import for providers implementing the API in this package:
Import-Package: org.osgi.util.promise; version="[1.0,1.1)"