CompleteChannelFuture which is failed already. It is
recommended to use Channel#newFailedFuture(Throwable)
instead of calling the constructor of this future.
| Access | Constructor and Description |
|---|---|
| pack-priv | FailedChannelFuture(Channel
the channel, EventExecutor executor, Throwable Channel associated with this futurethe cause of failure cause)Creates a new instance. |
| Modifier and Type | Method and Description |
|---|---|
| public Throwable | cause()
Implements io. |
| public boolean | isSuccess()
Implements io. true if and only if the I/O operation was completed
successfully.
|
| public ChannelFuture | sync()
Overrides io. Implements io. |
| public ChannelFuture | syncUninterruptibly()
Overrides io. Implements io. |
| cause | back to summary |
|---|---|
| private final Throwable cause | |
| FailedChannelFuture | back to summary |
|---|---|
| pack-priv FailedChannelFuture(Channel channel, EventExecutor executor, Throwable cause) Creates a new instance. | |
| 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. | |
| isSuccess | back to summary |
|---|---|
| public boolean isSuccess() Implements io. Doc from io. Returns
| |
| sync | back to summary |
|---|---|
| public ChannelFuture sync() 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.
| |