@ThreadSafe public class VMASyncFuture<T> extends Object implements VMFuture<T>
| Constructor and Description |
|---|
VMASyncFuture() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancel(boolean mayInterruptIfRunning) |
T |
get() |
T |
get(long timeout,
TimeUnit unit) |
Either<T,? extends ExecutionException> |
getResultStore() |
boolean |
isCancelled() |
boolean |
isDone() |
void |
setExceptionResult(ExecutionException result) |
void |
setResult(T result) |
String |
toString() |
public final boolean cancel(boolean mayInterruptIfRunning)
public final boolean isCancelled()
isCancelled in interface Future<T>public final Either<T,? extends ExecutionException> getResultStore()
getResultStore in interface VMFuture<T>public final T get() throws InterruptedException, ExecutionException
get in interface Future<T>InterruptedExceptionExecutionExceptionpublic final void setExceptionResult(ExecutionException result)
setExceptionResult in interface VMFuture<T>Copyright © 2018 SPF4J. All rights reserved.