@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> |
getResult() |
boolean |
isCancelled() |
boolean |
isDone() |
void |
setExceptionResult(ExecutionException eresult) |
void |
setResult(T presult) |
String |
toString() |
public final boolean cancel(boolean mayInterruptIfRunning)
public final boolean isCancelled()
isCancelled in interface Future<T>@Nullable public final Either<T,? extends ExecutionException> getResult()
public final void setExceptionResult(ExecutionException eresult)
setExceptionResult in interface VMFuture<T>Copyright © 2021 SPF4J. All rights reserved.