Package org.jboss.netty.channel
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) boolean
boolean
setFailure
(Throwable cause) Marks this future as a failure and notifies all listeners.boolean
Marks this future as a success and notifies all listeners.Methods inherited from class org.jboss.netty.channel.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:ChannelFuture
Marks this future as a success and notifies all listeners.- Specified by:
setSuccess
in interfaceChannelFuture
- Overrides:
setSuccess
in classDefaultChannelFuture
- Returns:
true
if and only if successfully marked this future as a success. Otherwisefalse
because this future is already marked as either a success or a failure.
-
setFailure
Description copied from interface:ChannelFuture
Marks this future as a failure and notifies all listeners.- Specified by:
setFailure
in interfaceChannelFuture
- Overrides:
setFailure
in classDefaultChannelFuture
- Returns:
true
if and only if successfully marked this future as a failure. Otherwisefalse
because this future is already marked as either a success or a failure.
-
setClosed
boolean setClosed()
-