Modifier and Type | Field and Description |
---|---|
private final EventExecutor |
Access | Constructor and Description |
---|---|
protected | CompleteFuture(EventExecutor
the executor)EventExecutor associated with this futureCreates a new instance. |
Modifier and Type | Method and Description |
---|---|
public Future | addListener(GenericFutureListener<? extends Future<? super V>> listener)
Implements io. |
public Future | addListeners(GenericFutureListener<? extends Future<? super V>>... listeners)
Implements io. |
public Future | |
public boolean | await(long timeout, TimeUnit unit)
Implements io. |
public boolean | await(long timeoutMillis)
Implements io. |
public Future | awaitUninterruptibly()
Implements io. |
public boolean | awaitUninterruptibly(long timeout, TimeUnit unit)
Implements io. |
public boolean | awaitUninterruptibly(long timeoutMillis)
Implements io. |
public boolean | cancel(boolean
this value has no effect in this implementation. mayInterruptIfRunning)Implements io. |
protected EventExecutor | |
public boolean | isCancellable()
Implements io. true if and only if the operation can be cancelled via cancel(boolean) .
|
public boolean | isCancelled()
Implements java. true if this task was cancelled before it completed
normally.
|
public boolean | |
public Future | removeListener(GenericFutureListener<? extends Future<? super V>> listener)
Implements io. |
public Future | removeListeners(GenericFutureListener<? extends Future<? super V>>... listeners)
Implements io. |
public Future | sync()
Implements io. |
public Future | syncUninterruptibly()
Implements io. |
executor | back to summary |
---|---|
private final EventExecutor executor |
CompleteFuture | back to summary |
---|---|
protected CompleteFuture(EventExecutor executor) Creates a new instance.
|
addListener | back to summary |
---|---|
public Future Implements io. Doc from io. Adds the specified listener to this future. The specified listener is notified when this future is done. If this future is already completed, the specified listener is notified immediately.
|
addListeners | back to summary |
---|---|
public Future Implements io. Doc from io. Adds the specified listeners to this future. The specified listeners are notified when this future is done. If this future is already completed, the specified listeners are notified immediately.
|
await | back to summary |
---|---|
public Future Implements io. Doc from io. Waits for this future to be completed.
|
await | back to summary |
---|---|
public boolean await(long timeout, TimeUnit unit) throws InterruptedException Implements io. Doc from io. Waits for this future to be completed within the specified time limit.
|
await | back to summary |
---|---|
public boolean await(long timeoutMillis) throws InterruptedException Implements io. Doc from io. Waits for this future to be completed within the specified time limit.
|
awaitUninterruptibly | back to summary |
---|---|
public Future Implements io. Doc from io. Waits for this future to be completed without
interruption. This method catches an
|
awaitUninterruptibly | back to summary |
---|---|
public boolean awaitUninterruptibly(long timeout, TimeUnit unit) Implements io. Doc from io. Waits for this future to be completed within the
specified time limit without interruption. This method catches an
|
awaitUninterruptibly | back to summary |
---|---|
public boolean awaitUninterruptibly(long timeoutMillis) Implements io. Doc from io. Waits for this future to be completed within the
specified time limit without interruption. This method catches an
|
cancel | back to summary |
---|---|
public boolean cancel(boolean mayInterruptIfRunning) Implements io. Doc from io. 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
|
executor | back to summary |
---|---|
protected EventExecutor executor() Return the |
isCancellable | back to summary |
---|---|
public boolean isCancellable() Implements io. Doc from io. returns
|
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
|
removeListener | back to summary |
---|---|
public Future Implements io. Doc from io. Removes the first occurrence of the specified listener from this future. The specified listener is no longer notified when this future is done. If the specified listener is not associated with this future, this method does nothing and returns silently.
|
removeListeners | back to summary |
---|---|
public Future Implements io. Doc from io. Removes the first occurrence for each of the listeners from this future. The specified listeners are no longer notified when this future is done. If the specified listeners are not associated with this future, this method does nothing and returns silently.
|
sync | back to summary |
---|---|
public Future Implements io. Doc from io. Waits for this future until it is done, and rethrows the cause of the failure if this future failed.
|
syncUninterruptibly | back to summary |
---|---|
public Future Implements io. Doc from io. Waits for this future until it is done, and rethrows the cause of the failure if this future failed.
|