final class SucceededChannelFuture extends CompleteChannelFuture
CompleteChannelFuture which is succeeded already. It is
recommended to use ChannelOutboundInvoker.newSucceededFuture() instead of
calling the constructor of this future.| Constructor and Description |
|---|
SucceededChannelFuture(Channel channel,
EventExecutor executor)
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. |
addListener, addListeners, await, awaitUninterruptibly, channel, executor, getNow, isVoid, removeListener, removeListeners, sync, syncUninterruptiblyawait, await, awaitUninterruptibly, awaitUninterruptibly, cancel, isCancellable, isCancelled, isDoneget, getclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitawait, await, awaitUninterruptibly, awaitUninterruptibly, cancel, isCancellableSucceededChannelFuture(Channel channel, EventExecutor executor)
channel - the Channel associated with this futurepublic 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.