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
private final class AbstractChannel.ChannelCloseFuture extends DefaultChannelFuture
-
-
Constructor Summary
Constructors Constructor Description ChannelCloseFuture()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) boolean
setClosed()
boolean
setFailure(java.lang.Throwable cause)
Marks this future as a failure and notifies all listeners.boolean
setSuccess()
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
-
-
-
-
Method Detail
-
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
public boolean setFailure(java.lang.Throwable cause)
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()
-
-