ChannelFuture which is writable.
| addListener | back to summary |
|---|---|
| public ChannelPromise addListener(GenericFutureListener<? extends Future<? super Void>> listener) Redeclares 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) Redeclares 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 Redeclares io. Doc from io. Waits for this future to be completed.
| |
| awaitUninterruptibly | back to summary |
|---|---|
| public ChannelPromise awaitUninterruptibly() Redeclares io. Doc from io. Waits for this future to be completed without
interruption. This method catches an
| |
| channel | back to summary |
|---|---|
| public Channel channel() Redeclares io. Doc from io. Returns a channel where the I/O operation associated with this future takes place.
| |
| removeListener | back to summary |
|---|---|
| public ChannelPromise removeListener(GenericFutureListener<? extends Future<? super Void>> listener) Redeclares 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) Redeclares 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) Redeclares 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) Redeclares 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() | |
| sync | back to summary |
|---|---|
| public ChannelPromise sync() throws InterruptedException Redeclares 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() Redeclares io. Doc from io. Waits for this future until it is done, and rethrows the cause of the failure if this future failed.
| |
| trySuccess | back to summary |
|---|---|
| public boolean trySuccess() | |
| unvoid | back to summary |
|---|---|
| public ChannelPromise unvoid() Returns a new | |