public class ChannelRunnableWrapper extends DefaultChannelFuture implements java.lang.Runnable
构造器和说明 |
---|
ChannelRunnableWrapper(Channel channel,
java.lang.Runnable task) |
限定符和类型 | 方法和说明 |
---|---|
boolean |
cancel()
Cancels the I/O operation associated with this future
and notifies all listeners if canceled successfully.
|
void |
run() |
addListener, await, await, await, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, getCause, getChannel, isCancelled, isDone, isSuccess, isUseDeadLockChecker, removeListener, setFailure, setProgress, setSuccess, setUseDeadLockChecker, sync, syncUninterruptibly
public ChannelRunnableWrapper(Channel channel, java.lang.Runnable task)
public void run()
run
在接口中 java.lang.Runnable
public boolean cancel()
ChannelFuture
cancel
在接口中 ChannelFuture
cancel
在类中 DefaultChannelFuture
true
if and only if the operation has been canceled.
false
if the operation can't be canceled or is already
completed.