<T,S extends T> Promise<java.util.List<T>> |
PromiseFactory.all(java.util.Collection<Promise<S>> promises) |
Returns a new Promise that is a latch on the resolution of the specified
Promises.
|
static <T,S extends T> Promise<java.util.List<T>> |
Promises.all(java.util.Collection<Promise<S>> promises) |
Returns a new Promise that is a latch on the resolution of the specified
Promises.
|
static <T> Promise<java.util.List<T>> |
Promises.all(Promise<? extends T>... promises) |
Returns a new Promise that is a latch on the resolution of the specified
Promises.
|
Promise<R> |
Success.call(Promise<T> resolved) |
Success callback for a Promise.
|
Promise<T> |
Promise.delay(long milliseconds) |
Delay after the resolution of this Promise.
|
Promise<T> |
PromiseImpl.delay(long millis) |
Delay after the resolution of this Promise.
|
<T> Promise<T> |
PromiseFactory.failed(java.lang.Throwable failure) |
Returns a new Promise that has been resolved with the specified failure.
|
static <T> Promise<T> |
Promises.failed(java.lang.Throwable failure) |
Returns a new Promise that has been resolved with the specified failure.
|
Promise<T> |
Promise.fallbackTo(Promise<? extends T> fallback) |
Fall back to the value of the specified Promise if this Promise fails.
|
Promise<T> |
Promise.fallbackTo(Promise<? extends T> fallback,
java.lang.Class<?> failureType) |
Fall back to the value of the specified Promise if this Promise fails and
the failure is an instance of a failure type.
|
Promise<T> |
PromiseImpl.fallbackTo(Promise<? extends T> fallback) |
Fall back to the value of the specified Promise if this Promise fails.
|
Promise<T> |
PromiseImpl.fallbackTo(Promise<? extends T> fallback,
java.lang.Class<?> failureType) |
Fall back to the value of the specified Promise if this Promise fails and
the failure is an instance of a failure type.
|
Promise<T> |
ResolvedPromiseImpl.fallbackTo(Promise<? extends T> fallback) |
Fall back to the value of the specified Promise if this Promise fails.
|
Promise<T> |
ResolvedPromiseImpl.fallbackTo(Promise<? extends T> fallback,
java.lang.Class<?> failureType) |
Fall back to the value of the specified Promise if this Promise fails and
the failure is an instance of a failure type.
|
Promise<T> |
FailedPromiseImpl.filter(org.osgi.util.function.Predicate<? super T> predicate) |
Filter the value of this Promise.
|
Promise<T> |
Promise.filter(org.osgi.util.function.Predicate<? super T> predicate) |
Filter the value of this Promise.
|
Promise<T> |
PromiseImpl.filter(org.osgi.util.function.Predicate<? super T> predicate) |
Filter the value of this Promise.
|
<R> Promise<R> |
FailedPromiseImpl.flatMap(org.osgi.util.function.Function<? super T,Promise<? extends R>> mapper) |
FlatMap the value of this Promise.
|
<R> Promise<R> |
Promise.flatMap(org.osgi.util.function.Function<? super T,Promise<? extends R>> mapper) |
FlatMap the value of this Promise.
|
<R> Promise<R> |
PromiseImpl.flatMap(org.osgi.util.function.Function<? super T,Promise<? extends R>> mapper) |
FlatMap the value of this Promise.
|
Promise<T> |
Deferred.getPromise() |
Returns the Promise associated with this Deferred.
|
<R> Promise<R> |
FailedPromiseImpl.map(org.osgi.util.function.Function<? super T,? extends R> mapper) |
Map the value of this Promise.
|
<R> Promise<R> |
Promise.map(org.osgi.util.function.Function<? super T,? extends R> mapper) |
Map the value of this Promise.
|
<R> Promise<R> |
PromiseImpl.map(org.osgi.util.function.Function<? super T,? extends R> mapper) |
Map the value of this Promise.
|
<F> Promise<T> |
Promise.onFailure(org.osgi.util.function.Consumer<? super F> failure,
java.lang.Class<? extends F> failureType) |
Register a callback to be called with the failure for this Promise when
this Promise is resolved with a failure of a failure type.
|
Promise<T> |
Promise.onFailure(org.osgi.util.function.Consumer<? super java.lang.Throwable> failure) |
Register a callback to be called with the failure for this Promise when
this Promise is resolved with a failure.
|
<F> Promise<T> |
PromiseImpl.onFailure(org.osgi.util.function.Consumer<? super F> failure,
java.lang.Class<? extends F> failureType) |
Register a callback to be called with the failure for this Promise when
this Promise is resolved with a failure of a failure type.
|
Promise<T> |
PromiseImpl.onFailure(org.osgi.util.function.Consumer<? super java.lang.Throwable> failure) |
Register a callback to be called with the failure for this Promise when
this Promise is resolved with a failure.
|
<F> Promise<T> |
ResolvedPromiseImpl.onFailure(org.osgi.util.function.Consumer<? super F> failure,
java.lang.Class<? extends F> failureType) |
Register a callback to be called with the failure for this Promise when
this Promise is resolved with a failure of a failure type.
|
Promise<T> |
ResolvedPromiseImpl.onFailure(org.osgi.util.function.Consumer<? super java.lang.Throwable> failure) |
Register a callback to be called with the failure for this Promise when
this Promise is resolved with a failure.
|
Promise<T> |
Promise.onResolve(java.lang.Runnable callback) |
Register a callback to be called when this Promise is resolved.
|
Promise<T> |
PromiseImpl.onResolve(java.lang.Runnable callback) |
Register a callback to be called when this Promise is resolved.
|
Promise<T> |
FailedPromiseImpl.onSuccess(org.osgi.util.function.Consumer<? super T> success) |
Register a callback to be called with the result of this Promise when
this Promise is resolved successfully.
|
Promise<T> |
Promise.onSuccess(org.osgi.util.function.Consumer<? super T> success) |
Register a callback to be called with the result of this Promise when
this Promise is resolved successfully.
|
Promise<T> |
PromiseImpl.onSuccess(org.osgi.util.function.Consumer<? super T> success) |
Register a callback to be called with the result of this Promise when
this Promise is resolved successfully.
|
Promise<T> |
Promise.recover(org.osgi.util.function.Function<Promise<?>,? extends T> recovery) |
Recover from a failure of this Promise with a recovery value.
|
Promise<T> |
Promise.recover(org.osgi.util.function.Function<Promise<?>,? extends T> recovery,
java.lang.Class<?> failureType) |
Recover from a failure of this Promise with a recovery value if the
failure is an instance of a failure type.
|
Promise<T> |
PromiseImpl.recover(org.osgi.util.function.Function<Promise<?>,? extends T> recovery) |
Recover from a failure of this Promise with a recovery value.
|
Promise<T> |
PromiseImpl.recover(org.osgi.util.function.Function<Promise<?>,? extends T> recovery,
java.lang.Class<?> failureType) |
Recover from a failure of this Promise with a recovery value if the
failure is an instance of a failure type.
|
Promise<T> |
ResolvedPromiseImpl.recover(org.osgi.util.function.Function<Promise<?>,? extends T> recovery) |
Recover from a failure of this Promise with a recovery value.
|
Promise<T> |
ResolvedPromiseImpl.recover(org.osgi.util.function.Function<Promise<?>,? extends T> recovery,
java.lang.Class<?> failureType) |
Recover from a failure of this Promise with a recovery value if the
failure is an instance of a failure type.
|
Promise<T> |
Promise.recoverWith(org.osgi.util.function.Function<Promise<?>,Promise<? extends T>> recovery) |
Recover from a failure of this Promise with a recovery Promise.
|
Promise<T> |
Promise.recoverWith(org.osgi.util.function.Function<Promise<?>,Promise<? extends T>> recovery,
java.lang.Class<?> failureType) |
Recover from a failure of this Promise with a recovery Promise if the
failure is an instance of a failure type.
|
Promise<T> |
PromiseImpl.recoverWith(org.osgi.util.function.Function<Promise<?>,Promise<? extends T>> recovery) |
Recover from a failure of this Promise with a recovery Promise.
|
Promise<T> |
PromiseImpl.recoverWith(org.osgi.util.function.Function<Promise<?>,Promise<? extends T>> recovery,
java.lang.Class<?> failureType) |
Recover from a failure of this Promise with a recovery Promise if the
failure is an instance of a failure type.
|
Promise<T> |
ResolvedPromiseImpl.recoverWith(org.osgi.util.function.Function<Promise<?>,Promise<? extends T>> recovery) |
Recover from a failure of this Promise with a recovery Promise.
|
Promise<T> |
ResolvedPromiseImpl.recoverWith(org.osgi.util.function.Function<Promise<?>,Promise<? extends T>> recovery,
java.lang.Class<?> failureType) |
Recover from a failure of this Promise with a recovery Promise if the
failure is an instance of a failure type.
|
<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.
|
<T> Promise<T> |
PromiseFactory.resolvedWith(java.util.concurrent.CompletionStage<? extends T> with) |
Returns a new Promise that will be resolved with the result of the
specified CompletionStage.
|
<T> Promise<T> |
PromiseFactory.resolvedWith(Promise<? extends T> with) |
Returns a new Promise that will be resolved with the specified Promise.
|
Promise<java.lang.Void> |
Deferred.resolveWith(java.util.concurrent.CompletionStage<? extends T> with) |
Resolve the Promise associated with this Deferred with the specified
CompletionStage.
|
Promise<java.lang.Void> |
Deferred.resolveWith(Promise<? extends T> with) |
Resolve the Promise associated with this Deferred with the specified
Promise.
|
(package private) Promise<java.lang.Void> |
DeferredPromiseImpl.resolveWith(java.util.concurrent.CompletionStage<? extends T> with) |
Resolve this Promise with the specified CompletionStage.
|
(package private) Promise<java.lang.Void> |
DeferredPromiseImpl.resolveWith(Promise<? extends T> with) |
Resolve this Promise with the specified Promise.
|
<T> Promise<T> |
PromiseFactory.submit(java.util.concurrent.Callable<? extends T> task) |
Returns a new Promise that will hold the result of the specified task.
|
<R> Promise<R> |
FailedPromiseImpl.then(Success<? super T,? extends R> success,
Failure failure) |
Chain a new Promise to this Promise with Success and Failure callbacks.
|
<R> Promise<R> |
Promise.then(Success<? super T,? extends R> success) |
Chain a new Promise to this Promise with a Success callback.
|
<R> Promise<R> |
Promise.then(Success<? super T,? extends R> success,
Failure failure) |
Chain a new Promise to this Promise with Success and Failure callbacks.
|
<R> Promise<R> |
PromiseImpl.then(Success<? super T,? extends R> success) |
Chain a new Promise to this Promise with a Success callback.
|
<R> Promise<R> |
PromiseImpl.then(Success<? super T,? extends R> success,
Failure failure) |
Chain a new Promise to this Promise with Success and Failure callbacks.
|
<R> Promise<R> |
ResolvedPromiseImpl.then(Success<? super T,? extends R> success,
Failure failure) |
Chain a new Promise to this Promise with Success and Failure callbacks.
|
Promise<T> |
FailedPromiseImpl.thenAccept(org.osgi.util.function.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<T> |
Promise.thenAccept(org.osgi.util.function.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<T> |
PromiseImpl.thenAccept(org.osgi.util.function.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<T> |
FailedPromiseImpl.timeout(long millis) |
Time out the resolution of this Promise.
|
Promise<T> |
Promise.timeout(long milliseconds) |
Time out the resolution of this Promise.
|
Promise<T> |
PromiseImpl.timeout(long millis) |
Time out the resolution of this Promise.
|
Promise<T> |
ResolvedPromiseImpl.timeout(long millis) |
Time out the resolution of this Promise.
|