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, promise, removeListener, removeListeners, setSuccess, sync, syncUninterruptibly
await, await, awaitUninterruptibly, awaitUninterruptibly, cancel, cause, getNow, isCancellable, isCancelled, isDone, isSuccess, notifyListener, setUncancellable, toString, toStringBuilder, trySuccess
get, get
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
setUncancellable, trySuccess
await, await, awaitUninterruptibly, awaitUninterruptibly, cancel, cause, getNow, isCancellable, isSuccess
CloseFuture(AbstractChannel ch)
public ChannelPromise setSuccess()
setSuccess
in interface ChannelPromise
setSuccess
in class DefaultChannelPromise
public ChannelPromise setFailure(java.lang.Throwable cause)
Promise
IllegalStateException
.setFailure
in interface ChannelPromise
setFailure
in interface Promise<java.lang.Void>
setFailure
in class DefaultChannelPromise
public boolean trySuccess()
trySuccess
in interface ChannelPromise
trySuccess
in class DefaultChannelPromise
public boolean tryFailure(java.lang.Throwable cause)
Promise
tryFailure
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()