| Modifier and Type | Field and Description |
|---|---|
| private final Throwable | |
| private final V |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | cancel(boolean mayInterruptIfRunning)
Implements java. Attempts to cancel execution of this task. |
| public V | get()
Implements java. Waits if necessary for the computation to complete, and then retrieves its result. |
| public V | get(long timeout, TimeUnit unit)
Implements java. Waits if necessary for at most the given time for the computation to complete, and then retrieves its result, if available. |
| public boolean | isCancelled()
Implements java. Returns |
| public boolean | |
| pack-priv static <V> CompletedFuture | |
| pack-priv static <V> CompletedFuture | |
| pack-priv static <V> CompletedFuture |
| exc | back to summary |
|---|---|
| private final Throwable exc | |
| result | back to summary |
|---|---|
| private final V result | |
| CompletedFuture | back to summary |
|---|---|
| private CompletedFuture(V result, Throwable exc) | |
| cancel | back to summary |
|---|---|
| public boolean cancel(boolean mayInterruptIfRunning) Implements java. Doc from java. Attempts to cancel execution of this task. This method has no
effect if the task is already completed or cancelled, or could
not be cancelled for some other reason. Otherwise, if this
task has not started when The return value from this method does not necessarily
indicate whether the task is now cancelled; use
| |
| get | back to summary |
|---|---|
| public V get() throws ExecutionException Implements java. Doc from java. Waits if necessary for the computation to complete, and then retrieves its result.
| |
| get | back to summary |
|---|---|
| public V get(long timeout, TimeUnit unit) throws ExecutionException Implements java. Doc from java. Waits if necessary for at most the given time for the computation to complete, and then retrieves its result, if available.
| |
| isCancelled | back to summary |
|---|---|
| public boolean isCancelled() Implements java. Doc from java. Returns
| |
| isDone | back to summary |
|---|---|
| public boolean isDone() Implements java. Doc from java. Returns
| |
| withFailure | back to summary |
|---|---|
| pack-priv static <V> CompletedFuture | |
| withResult | back to summary |
|---|---|
| pack-priv static <V> CompletedFuture | |
| withResult | back to summary |
|---|---|
| pack-priv static <V> CompletedFuture | |