@groovy.transform.CompileStatic class FutureTaskPromise extends java.util.concurrent.FutureTask
A Promise that is a java.util.concurrent.FutureTask
Constructor and description |
---|
FutureTaskPromise
(PromiseFactory promiseFactory, java.util.concurrent.Callable<T> callable) |
FutureTaskPromise
(PromiseFactory promiseFactory, java.lang.Runnable runnable, T value) |
Type Params | Return Type | Name and description |
---|---|---|
|
Promise<T> |
accept(T value) |
|
T |
get() |
|
T |
get(long timeout, java.util.concurrent.TimeUnit unit) |
|
boolean |
isDone() |
|
Promise<T> |
onComplete(groovy.lang.Closure callable) |
|
Promise<T> |
onError(groovy.lang.Closure callable) |
|
protected void |
set(T t) |
|
protected void |
setException(java.lang.Throwable t) |
|
Promise<T> |
then(groovy.lang.Closure callable) |
Methods inherited from class | Name |
---|---|
class java.util.concurrent.FutureTask |
java.util.concurrent.FutureTask#isCancelled(), java.util.concurrent.FutureTask#isDone(), java.util.concurrent.FutureTask#run(), java.util.concurrent.FutureTask#get(), java.util.concurrent.FutureTask#get(long, java.util.concurrent.TimeUnit), java.util.concurrent.FutureTask#cancel(boolean), java.util.concurrent.FutureTask#wait(long, int), java.util.concurrent.FutureTask#wait(long), java.util.concurrent.FutureTask#wait(), java.util.concurrent.FutureTask#equals(java.lang.Object), java.util.concurrent.FutureTask#toString(), java.util.concurrent.FutureTask#hashCode(), java.util.concurrent.FutureTask#getClass(), java.util.concurrent.FutureTask#notify(), java.util.concurrent.FutureTask#notifyAll() |
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), 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() |