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:
java.lang.Runnable,ChannelFuture
public class ChannelRunnableWrapper extends DefaultChannelFuture implements java.lang.Runnable
-
-
Constructor Summary
Constructors Constructor Description ChannelRunnableWrapper(Channel channel, java.lang.Runnable task)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancancel()Cancels the I/O operation associated with this future and notifies all listeners if canceled successfully.voidrun()-
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
-
-
-
-
Constructor Detail
-
ChannelRunnableWrapper
public ChannelRunnableWrapper(Channel channel, java.lang.Runnable task)
-
-
Method Detail
-
run
public void run()
- Specified by:
runin interfacejava.lang.Runnable
-
cancel
public boolean cancel()
Description copied from interface:ChannelFutureCancels the I/O operation associated with this future and notifies all listeners if canceled successfully.- Specified by:
cancelin interfaceChannelFuture- Overrides:
cancelin classDefaultChannelFuture- Returns:
trueif and only if the operation has been canceled.falseif the operation can't be canceled or is already completed.
-
-