Package org.jboss.netty.channel.socket
Class ChannelRunnableWrapper
java.lang.Object
org.jboss.netty.channel.DefaultChannelFuture
org.jboss.netty.channel.socket.ChannelRunnableWrapper
- All Implemented Interfaces:
Runnable
,ChannelFuture
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.jboss.netty.channel.DefaultChannelFuture
addListener, await, await, await, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, getCause, getChannel, isCancelled, isDone, isSuccess, isUseDeadLockChecker, removeListener, setFailure, setProgress, setSuccess, setUseDeadLockChecker, sync, syncUninterruptibly
-
Field Details
-
task
-
started
private boolean started
-
-
Constructor Details
-
ChannelRunnableWrapper
-
-
Method Details
-
run
public void run() -
cancel
public boolean cancel()Description copied from interface:ChannelFuture
Cancels the I/O operation associated with this future and notifies all listeners if canceled successfully.- Specified by:
cancel
in interfaceChannelFuture
- Overrides:
cancel
in classDefaultChannelFuture
- Returns:
true
if and only if the operation has been canceled.false
if the operation can't be canceled or is already completed.
-