ChannelFuture implementation which represents a
ChannelFuture which has been completed already.
| Access | Constructor and Description |
|---|---|
| protected | CompleteChannelFuture(Channel
the channel, EventExecutor executor)Channel associated with this futureCreates a new instance. |
| channel | back to summary |
|---|---|
| private final Channel channel | |
| CompleteChannelFuture | back to summary |
|---|---|
| protected CompleteChannelFuture(Channel channel, EventExecutor executor) Creates a new instance. | |
| addListener | back to summary |
|---|---|
| public ChannelFuture addListener(GenericFutureListener<? extends Future<? super Void>> listener) Overrides io. 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 ChannelFuture addListeners(GenericFutureListener<? extends Future<? super Void>>... listeners) Overrides io. 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 ChannelFuture await() throws InterruptedException Overrides io. Implements io. Doc from io. Waits for this future to be completed.
| |
| awaitUninterruptibly | back to summary |
|---|---|
| public ChannelFuture awaitUninterruptibly() Overrides io. Implements io. Doc from io. Waits for this future to be completed without
interruption. This method catches an
| |
| 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.
| |
| executor | back to summary |
|---|---|
| protected EventExecutor executor() Overrides io. Doc from io. Return the
| |
| 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
| |
| isVoid | back to summary |
|---|---|
| public boolean isVoid() Implements io. Doc from io. Returns
| |
| removeListener | back to summary |
|---|---|
| public ChannelFuture removeListener(GenericFutureListener<? extends Future<? super Void>> listener) Overrides io. 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 ChannelFuture removeListeners(GenericFutureListener<? extends Future<? super Void>>... listeners) Overrides io. 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 ChannelFuture sync() throws InterruptedException Overrides io. 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 ChannelFuture syncUninterruptibly() Overrides io. Implements io. Doc from io. Waits for this future until it is done, and rethrows the cause of the failure if this future failed.
| |