| Modifier and Type | Field and Description |
|---|---|
| private final ChannelPromise | |
| private static final InternalLogger | |
| private final boolean |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public ChannelPromise | addListener(GenericFutureListener<? extends Future<? super Void>> listener)
Implements io. |
| public ChannelPromise | addListeners(GenericFutureListener<? extends Future<? super Void>>... listeners)
Implements io. |
| public ChannelPromise | |
| public boolean | await(long timeout, TimeUnit unit)
Implements io. |
| public boolean | await(long timeoutMillis)
Implements io. |
| public ChannelPromise | awaitUninterruptibly()
Implements io. |
| public boolean | awaitUninterruptibly(long timeout, TimeUnit unit)
Implements io. |
| public boolean | awaitUninterruptibly(long timeoutMillis)
Implements io. |
| public boolean | cancel(boolean
true if the thread
executing this task should be interrupted (if the thread is
known to the implementation); otherwise, in-progress tasks are
allowed to completeImplements io. |
| public Throwable | cause()
Implements io. |
| public Channel | channel()
Implements io. |
| public Void | get()
Implements java. |
| public Void | get(long
the maximum time to wait timeout, TimeUnit the time unit of the timeout argument unit)Implements java. |
| 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 void | operationComplete(ChannelFuture
the source future)Future which called this callbackImplements io. Future has been completed.
|
| public ChannelPromise | removeListener(GenericFutureListener<? extends Future<? super Void>> listener)
Implements io. |
| public ChannelPromise | removeListeners(GenericFutureListener<? extends Future<? super Void>>... listeners)
Implements io. |
| public ChannelPromise | setFailure(Throwable cause)
Implements io. |
| public ChannelPromise | setSuccess(Void result)
Implements io. |
| public ChannelPromise | |
| public boolean | setUncancellable()
Implements io. |
| public ChannelPromise | sync()
Implements io. |
| public ChannelPromise | 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.
|
| delegate | back to summary |
|---|---|
| private final ChannelPromise delegate | |
| logger | back to summary |
|---|---|
| private static final InternalLogger logger | |
| logNotifyFailure | back to summary |
|---|---|
| private final boolean logNotifyFailure | |
| DelegatingChannelPromiseNotifier | back to summary |
|---|---|
| public DelegatingChannelPromiseNotifier(ChannelPromise delegate) | |
| DelegatingChannelPromiseNotifier | back to summary |
|---|---|
| public DelegatingChannelPromiseNotifier(ChannelPromise delegate, boolean logNotifyFailure) | |
| addListener | back to summary |
|---|---|
| public ChannelPromise 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 ChannelPromise 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 ChannelPromise 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) 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 ChannelPromise 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.
| |
| get | back to summary |
|---|---|
| public Void get() throws InterruptedException, ExecutionException Implements java. Doc from java. Waits if necessary for the computation to complete, and then retrieves its result.
| |
| get | back to summary |
|---|---|
| public Void get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, 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.
| |
| 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
| |
| operationComplete | back to summary |
|---|---|
| public void operationComplete(ChannelFuture future) throws Exception Implements io. Doc from io. Invoked when the operation associated with the
| |
| removeListener | back to summary |
|---|---|
| public ChannelPromise 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 ChannelPromise 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 ChannelPromise 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 ChannelPromise 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
| |
| setSuccess | back to summary |
|---|---|
| public ChannelPromise setSuccess() Implements io.
| |
| setUncancellable | back to summary |
|---|---|
| public boolean setUncancellable() Implements io. Doc from io. Make this future impossible to cancel.
| |
| sync | back to summary |
|---|---|
| public ChannelPromise sync() throws InterruptedException 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 ChannelPromise 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
| |