Class AbstractChannel.ChannelCloseFuture
java.lang.Object
org.jboss.netty.channel.DefaultChannelFuture
org.jboss.netty.channel.AbstractChannel.ChannelCloseFuture
- All Implemented Interfaces:
ChannelFuture
- Enclosing class:
AbstractChannel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) booleanbooleansetFailure(Throwable cause) Marks this future as a failure and notifies all listeners.booleanMarks this future as a success and notifies all listeners.Methods inherited from class DefaultChannelFuture
addListener, await, await, await, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, cancel, getCause, getChannel, isCancelled, isDone, isSuccess, isUseDeadLockChecker, removeListener, setProgress, setUseDeadLockChecker, sync, syncUninterruptibly
-
Constructor Details
-
ChannelCloseFuture
ChannelCloseFuture()
-
-
Method Details
-
setSuccess
public boolean setSuccess()Description copied from interface:ChannelFutureMarks this future as a success and notifies all listeners.- Specified by:
setSuccessin interfaceChannelFuture- Overrides:
setSuccessin classDefaultChannelFuture- Returns:
trueif and only if successfully marked this future as a success. Otherwisefalsebecause this future is already marked as either a success or a failure.
-
setFailure
Description copied from interface:ChannelFutureMarks this future as a failure and notifies all listeners.- Specified by:
setFailurein interfaceChannelFuture- Overrides:
setFailurein classDefaultChannelFuture- Returns:
trueif and only if successfully marked this future as a failure. Otherwisefalsebecause this future is already marked as either a success or a failure.
-
setClosed
boolean setClosed()
-