| Modifier and Type | Interface and Description |
|---|---|
interface |
Deferred<T,F,P>
A representation of a computation allowing listeners to be notified of state changes.
|
interface |
ExecutablePromise<T,F,P>
A
Promise that exposes a computational task suitable for execution by an ExecutorService. |
| Modifier and Type | Method and Description |
|---|---|
Promise<T,F,P> |
Promise.onCancel(OnCancel then)
Triggered when
cancel(boolean) is the first terminal method called. |
Promise<T,F,P> |
Promise.onComplete(OnComplete then)
Triggered on any event after which
isDone() will return true. |
Promise<T,F,P> |
Promise.onGet(Future<?> then)
Triggered when
Future.get(long, java.util.concurrent.TimeUnit) or Future.get() is called. |
Promise<T,F,P> |
Promise.onProgress(OnProgress<P> then)
Triggered when
Deferred.progress(Object) is called. |
Promise<T,F,P> |
Promise.onReject(OnReject<F> then)
Triggered when
Deferred.reject(Object) is the first terminal method called. |
Promise<T,F,P> |
Promise.onResolve(OnResolve<T> then)
Triggered when
Deferred.resolve(Object) is the first terminal method called. |
Promise<T,F,P> |
Deferred.promise()
Produces a readonly view of this Deferred.
|
Copyright © 2014 MachineCode. All rights reserved.