final class SucceededChannelFuture extends CompleteChannelFuture
CompleteChannelFuture
which is succeeded already. It is
recommended to use Channel.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, removeListener, removeListeners, sync, syncUninterruptibly
await, await, awaitUninterruptibly, awaitUninterruptibly, cancel, isCancellable, isCancelled, isDone
get, get
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
await, await, awaitUninterruptibly, awaitUninterruptibly, cancel, isCancellable
SucceededChannelFuture(Channel channel, EventExecutor executor)
channel
- the Channel
associated with this futurepublic java.lang.Throwable cause()
Future
null
if succeeded or this future is not
completed yet.public boolean isSuccess()
Future
true
if and only if the I/O operation was completed
successfully.