Package | Description |
---|---|
org.osgi.util.promise |
Promise Package Version 1.1.
|
Modifier and Type | Field and Description |
---|---|
private Consumer<? super T> |
DeferredPromiseImpl.ThenAccept.consumer |
private Consumer<? super java.lang.Throwable> |
PromiseImpl.OnFailure.failure |
private Consumer<? super T> |
PromiseImpl.OnSuccess.success |
Modifier and Type | Method and Description |
---|---|
Promise<T> |
ResolvedPromiseImpl.onFailure(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> |
PromiseImpl.onFailure(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.onFailure(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> |
PromiseImpl.onSuccess(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(Consumer<? super T> success)
Register a callback to be called with the result of this Promise when
this Promise is resolved successfully.
|
Promise<T> |
FailedPromiseImpl.onSuccess(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.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<T> |
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<T> |
FailedPromiseImpl.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.
|
Constructor and Description |
---|
OnFailure(Consumer<? super java.lang.Throwable> failure) |
OnSuccess(Consumer<? super T> success) |
ThenAccept(PromiseImpl<T> promise,
Consumer<? super T> consumer) |