@groovy.transform.AutoFinal @groovy.transform.CompileStatic @groovy.transform.PackageScope class FutureTaskChildPromise<T> extends java.lang.Object implements Promise<T>
A child promise of a FutureTaskPromise
Modifiers | Name | Description |
---|---|---|
private Promise<T> |
bound |
|
private java.util.Collection<FutureTaskChildPromise> |
failureCallbacks |
|
private java.util.Collection<FutureTaskChildPromise> |
successCallbacks |
Type | Name and description |
---|---|
groovy.lang.Closure<T> |
callable |
Promise<T> |
parent |
PromiseFactory |
promiseFactory |
Constructor and description |
---|
FutureTaskChildPromise(PromiseFactory promiseFactory, Promise<T> parent, groovy.lang.Closure<T> callable) |
Type Params | Return Type | Name and description |
---|---|---|
|
Promise<T> |
accept(T value) |
|
boolean |
cancel(boolean mayInterruptIfRunning) |
|
T |
get() |
|
T |
get(long timeout, java.util.concurrent.TimeUnit unit) |
|
boolean |
isCancelled() |
|
boolean |
isDone() |
|
Promise<T> |
onComplete(groovy.lang.Closure<T> callable) |
|
Promise<T> |
onError(groovy.lang.Closure<T> callable) |
|
Promise<T> |
then(groovy.lang.Closure<T> callable) |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Groovy Documentation