| Modifier and Type | Field and Description |
|---|---|
| private final Channel | |
| private final ChannelFutureListener |
| Access | Constructor and Description |
|---|---|
| public | VoidChannelPromise(final Channel
the channel, boolean fireException)Channel associated with this futureCreates a new instance. |
| Modifier and Type | Method and Description |
|---|---|
| public VoidChannelPromise | addListener(GenericFutureListener<? extends Future<? super Void>> listener)
Implements io. |
| public VoidChannelPromise | addListeners(GenericFutureListener<? extends Future<? super Void>>... listeners)
Implements io. |
| public VoidChannelPromise | await()
Implements io. |
| public boolean | await(long timeout, TimeUnit unit)
Implements io. |
| public boolean | await(long timeoutMillis)
Implements io. |
| public VoidChannelPromise | 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. |
| public Throwable | cause()
Implements io. |
| public Channel | channel()
Implements io. |
| private static void | |
| private void | |
| public Void | |
| 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 boolean | isSuccess()
Implements io. true if and only if the I/O operation was completed
successfully.
|
| public boolean | isVoid()
Implements io. true if this ChannelFuture is a void future and so not allow to call any of the
following methods:
|
| public VoidChannelPromise | removeListener(GenericFutureListener<? extends Future<? super Void>> listener)
Implements io. |
| public VoidChannelPromise | removeListeners(GenericFutureListener<? extends Future<? super Void>>... listeners)
Implements io. |
| public VoidChannelPromise | setFailure(Throwable cause)
Implements io. |
| public VoidChannelPromise | |
| public VoidChannelPromise | setSuccess(Void result)
Implements io. |
| public boolean | setUncancellable()
Implements io. |
| public VoidChannelPromise | sync()
Implements io. |
| public VoidChannelPromise | syncUninterruptibly()
Implements io. |
| public boolean | tryFailure(Throwable cause)
Implements io. |
| public boolean | |
| public boolean | trySuccess(Void result)
Implements io. |
| public ChannelPromise | unvoid()
Implements io. ChannelPromise if isVoid() returns true otherwise itself.
|
| channel | back to summary |
|---|---|
| private final Channel channel | |
| fireExceptionListener | back to summary |
|---|---|
| private final ChannelFutureListener fireExceptionListener | |
| VoidChannelPromise | back to summary |
|---|---|
| public VoidChannelPromise(final Channel channel, boolean fireException) Creates a new instance. | |
| addListener | back to summary |
|---|---|
| public VoidChannelPromise addListener(GenericFutureListener<? extends Future<? super Void>> listener) 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 VoidChannelPromise addListeners(GenericFutureListener<? extends Future<? super Void>>... listeners) 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 VoidChannelPromise await() throws InterruptedException Implements io. Doc from io. Waits for this future to be completed.
| |
| await | back to summary |
|---|---|
| public boolean await(long timeout, TimeUnit unit) 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) Implements io. Doc from io. Waits for this future to be completed within the specified time limit.
| |
| awaitUninterruptibly | back to summary |
|---|---|
| public VoidChannelPromise awaitUninterruptibly() 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
| |
| cause | back to summary |
|---|---|
| public Throwable cause() Implements io. Doc from io. Returns the cause of the failed I/O operation if the I/O operation has failed. | |
| channel | back to summary |
|---|---|
| public Channel channel() Implements io. Doc from io. Returns a channel where the I/O operation associated with this future takes place.
| |
| fail | back to summary |
|---|---|
| private static void fail() | |
| fireException0 | back to summary |
|---|---|
| private void fireException0(Throwable cause) | |
| getNow | back to summary |
|---|---|
| public Void getNow() Implements io. Doc from io. Return the result without blocking. If the future is not done yet this will return
| |
| 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
| |
| isSuccess | back to summary |
|---|---|
| public boolean isSuccess() Implements io. Doc from io. Returns
| |
| isVoid | back to summary |
|---|---|
| public boolean isVoid() Implements io. Doc from io. Returns
| |
| removeListener | back to summary |
|---|---|
| public VoidChannelPromise removeListener(GenericFutureListener<? extends Future<? super Void>> listener) 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 VoidChannelPromise removeListeners(GenericFutureListener<? extends Future<? super Void>>... listeners) 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.
| |
| setFailure | back to summary |
|---|---|
| public VoidChannelPromise setFailure(Throwable cause) Implements io. Doc from io. Marks this future as a failure and notifies all
listeners.
If it is success or failed already it will throw an
| |
| setSuccess | back to summary |
|---|---|
| public VoidChannelPromise setSuccess() Implements io.
| |
| setSuccess | back to summary |
|---|---|
| public VoidChannelPromise setSuccess(Void result) Implements io. Doc from io. Marks this future as a success and notifies all
listeners.
If it is success or failed already it will throw an
| |
| setUncancellable | back to summary |
|---|---|
| public boolean setUncancellable() Implements io. Doc from io. Make this future impossible to cancel.
| |
| sync | back to summary |
|---|---|
| public VoidChannelPromise sync() 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 VoidChannelPromise syncUninterruptibly() Implements io. Doc from io. Waits for this future until it is done, and rethrows the cause of the failure if this future failed.
| |
| tryFailure | back to summary |
|---|---|
| public boolean tryFailure(Throwable cause) Implements io. Doc from io. Marks this future as a failure and notifies all listeners.
| |
| trySuccess | back to summary |
|---|---|
| public boolean trySuccess() Implements io.
| |
| trySuccess | back to summary |
|---|---|
| public boolean trySuccess(Void result) Implements io. Doc from io. Marks this future as a success and notifies all listeners.
| |
| unvoid | back to summary |
|---|---|
| public ChannelPromise unvoid() Implements io. Doc from io. Returns a new
| |