public class ChannelRunnableWrapper extends DefaultChannelFuture implements java.lang.Runnable
| Modifier and Type | Field and Description |
|---|---|
private boolean |
started |
private java.lang.Runnable |
task |
| Constructor and Description |
|---|
ChannelRunnableWrapper(Channel channel,
java.lang.Runnable task) |
| Modifier and Type | Method and Description |
|---|---|
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 in interface java.lang.Runnablepublic boolean cancel()
ChannelFuturecancel in interface ChannelFuturecancel in class DefaultChannelFuturetrue if and only if the operation has been canceled.
false if the operation can't be canceled or is already
completed.