| Modifier and Type | Field and Description |
|---|---|
private TaskEntry<T> |
entry |
protected boolean |
waits |
| Constructor and Description |
|---|
TaskEntryFuture(TaskEntry<T> entry,
boolean waits) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancel(boolean pMayInterruptIfRunning) |
T |
get() |
T |
get(long pTimeout,
TimeUnit pUnit) |
TaskEntry<T> |
getEntry() |
boolean |
isCancelled() |
boolean |
isDone() |
boolean |
isWaits() |
public boolean isWaits()
public boolean cancel(boolean pMayInterruptIfRunning)
public boolean isCancelled()
isCancelled in interface Future<T>public T get() throws InterruptedException, ExecutionException
get in interface Future<T>InterruptedExceptionExecutionExceptionpublic T get(long pTimeout, TimeUnit pUnit) throws InterruptedException, ExecutionException, TimeoutException
get in interface Future<T>InterruptedExceptionExecutionExceptionTimeoutExceptionCopyright © 2020. All rights reserved.