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, syncUninterruptiblypublic ChannelRunnableWrapper(Channel channel, java.lang.Runnable task)
public void run()
run 在接口中 java.lang.Runnablepublic boolean cancel()
ChannelFuturecancel 在接口中 ChannelFuturecancel 在类中 DefaultChannelFuturetrue if and only if the operation has been canceled.
false if the operation can't be canceled or is already
completed.