final class FailedChannelFuture extends CompleteChannelFuture
CompleteChannelFuture which is failed already. It is
recommended to use ChannelOutboundInvoker.newFailedFuture(Throwable)
instead of calling the constructor of this future.| Modifier and Type | Field and Description |
|---|---|
private java.lang.Throwable |
cause |
| Constructor and Description |
|---|
FailedChannelFuture(Channel channel,
EventExecutor executor,
java.lang.Throwable cause)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Throwable |
cause()
Returns the cause of the failed I/O operation if the I/O operation has
failed.
|
boolean |
isSuccess()
Returns
true if and only if the I/O operation was completed
successfully. |
ChannelFuture |
sync()
Waits for this future until it is done, and rethrows the cause of the failure if this future
failed.
|
ChannelFuture |
syncUninterruptibly()
Waits for this future until it is done, and rethrows the cause of the failure if this future
failed.
|
addListener, addListeners, await, awaitUninterruptibly, channel, executor, getNow, isVoid, removeListener, removeListenersawait, await, awaitUninterruptibly, awaitUninterruptibly, cancel, isCancellable, isCancelled, isDoneget, getclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitawait, await, awaitUninterruptibly, awaitUninterruptibly, cancel, isCancellableFailedChannelFuture(Channel channel, EventExecutor executor, java.lang.Throwable cause)
channel - the Channel associated with this futurecause - the cause of failurepublic java.lang.Throwable cause()
Futurenull if succeeded or this future is not
completed yet.public boolean isSuccess()
Futuretrue if and only if the I/O operation was completed
successfully.public ChannelFuture sync()
Futuresync in interface ChannelFuturesync in class CompleteChannelFuturepublic ChannelFuture syncUninterruptibly()
FuturesyncUninterruptibly in interface ChannelFuturesyncUninterruptibly in class CompleteChannelFuture