| Modifier and Type | Field and Description |
|---|---|
| private final A | |
| private final AsynchronousChannel | |
| private volatile Object | |
| private volatile Throwable | |
| private final CompletionHandler | |
| private volatile boolean | |
| private CountDownLatch | |
| private volatile V | |
| private Future |
| Access | Constructor and Description |
|---|---|
| pack-priv | PendingFuture(AsynchronousChannel channel, CompletionHandler<V, ? super A> handler, A attachment, Object context)
|
| pack-priv | |
| pack-priv | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv A | |
| public boolean | cancel(boolean mayInterruptIfRunning)
Implements java. Attempts to cancel execution of this task. |
| pack-priv AsynchronousChannel | |
| pack-priv Throwable | |
| 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. |
| pack-priv Object | |
| pack-priv CompletionHandler | |
| public boolean | isCancelled()
Implements java. Returns |
| public boolean | |
| private boolean | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv V |
| attachment | back to summary |
|---|---|
| private final A attachment | |
| channel | back to summary |
|---|---|
| private final AsynchronousChannel channel | |
| context | back to summary |
|---|---|
| private volatile Object context | |
| exc | back to summary |
|---|---|
| private volatile Throwable exc | |
| handler | back to summary |
|---|---|
| private final CompletionHandler<V, ? super A> handler | |
| haveResult | back to summary |
|---|---|
| private volatile boolean haveResult | |
| latch | back to summary |
|---|---|
| private CountDownLatch latch | |
| result | back to summary |
|---|---|
| private volatile V result | |
| timeoutTask | back to summary |
|---|---|
| private Future<?> timeoutTask | |
| PendingFuture | back to summary |
|---|---|
| pack-priv PendingFuture(AsynchronousChannel channel, CompletionHandler<V, ? super A> handler, A attachment, Object context) | |
| PendingFuture | back to summary |
|---|---|
| pack-priv PendingFuture(AsynchronousChannel channel, CompletionHandler<V, ? super A> handler, A attachment) | |
| PendingFuture | back to summary |
|---|---|
| pack-priv PendingFuture(AsynchronousChannel channel) | |
| PendingFuture | back to summary |
|---|---|
| pack-priv PendingFuture(AsynchronousChannel channel, Object context) | |
| attachment | back to summary |
|---|---|
| pack-priv A attachment() | |
| 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
| |
| channel | back to summary |
|---|---|
| pack-priv AsynchronousChannel channel() | |
| exception | back to summary |
|---|---|
| pack-priv Throwable exception() | |
| get | back to summary |
|---|---|
| public V get() throws ExecutionException, InterruptedException 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, InterruptedException, TimeoutException 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.
| |
| getContext | back to summary |
|---|---|
| pack-priv Object getContext() | |
| handler | back to summary |
|---|---|
| pack-priv CompletionHandler | |
| 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
| |
| prepareForWait | back to summary |
|---|---|
| private boolean prepareForWait() | |
| setContext | back to summary |
|---|---|
| pack-priv void setContext(Object context) | |
| setFailure | back to summary |
|---|---|
| pack-priv void setFailure(Throwable x) Sets the result, or a no-op if the result or exception is already set. | |
| setResult | back to summary |
|---|---|
| pack-priv void setResult(V res) Sets the result, or a no-op if the result or exception is already set. | |
| setResult | back to summary |
|---|---|
| pack-priv void setResult(V res, Throwable x) Sets the result | |
| setTimeoutTask | back to summary |
|---|---|
| pack-priv void setTimeoutTask(Future<?> task) | |
| value | back to summary |
|---|---|
| pack-priv V value() | |