Package play.libs
Class Promise<V>
java.lang.Object
play.libs.Promise<V>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
invoked
protected boolean invoked -
result
-
exception
-
-
Constructor Details
-
Promise
public Promise()
-
-
Method Details
-
cancel
public boolean cancel(boolean mayInterruptIfRunning) -
isCancelled
public boolean isCancelled()- Specified by:
isCancelledin interfaceFuture<V>
-
isDone
public boolean isDone() -
get
- Specified by:
getin interfaceFuture<V>- Throws:
InterruptedExceptionExecutionException
-
get
public V get(long timeout, @Nonnull TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException - Specified by:
getin interfaceFuture<V>- Throws:
InterruptedExceptionExecutionExceptionTimeoutException
-
accept
-
invokeWithException
-
invokeWithResultOrException
-