static final class AbstractChannel.CloseFuture extends DefaultChannelPromise
| Constructor and Description |
|---|
CloseFuture(AbstractChannel ch) |
| Modifier and Type | Method and Description |
|---|---|
(package private) boolean |
setClosed() |
ChannelPromise |
setFailure(java.lang.Throwable cause)
Marks this future as a failure and notifies all
listeners.
|
ChannelPromise |
setSuccess() |
boolean |
tryFailure(java.lang.Throwable cause)
Marks this future as a failure and notifies all
listeners.
|
boolean |
trySuccess() |
addListener, addListeners, await, awaitUninterruptibly, channel, checkDeadLock, executor, flushCheckpoint, flushCheckpoint, isVoid, promise, removeListener, removeListeners, setSuccess, sync, syncUninterruptibly, unvoidawait, await, awaitUninterruptibly, awaitUninterruptibly, cancel, cause, getNow, isCancellable, isCancelled, isDone, isSuccess, notifyListener, setUncancellable, toString, toStringBuilder, trySuccessget, getclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitsetUncancellable, trySuccessawait, await, awaitUninterruptibly, awaitUninterruptibly, cancel, cause, getNow, isCancellable, isSuccessCloseFuture(AbstractChannel ch)
public ChannelPromise setSuccess()
setSuccess in interface ChannelPromisesetSuccess in class DefaultChannelPromisepublic ChannelPromise setFailure(java.lang.Throwable cause)
PromiseIllegalStateException.setFailure in interface ChannelPromisesetFailure in interface Promise<java.lang.Void>setFailure in class DefaultChannelPromisepublic boolean trySuccess()
trySuccess in interface ChannelPromisetrySuccess in class DefaultChannelPromisepublic boolean tryFailure(java.lang.Throwable cause)
PromisetryFailure in interface Promise<java.lang.Void>tryFailure in class DefaultPromise<java.lang.Void>true if and only if successfully marked this future as
a failure. Otherwise false because this future is
already marked as either a success or a failure.boolean setClosed()