public class ChannelRunnableWrapper extends DefaultChannelFuture implements Runnable
Constructor and Description |
---|
ChannelRunnableWrapper(Channel channel,
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, syncUninterruptibly
public boolean cancel()
ChannelFuture
cancel
in interface ChannelFuture
cancel
in class DefaultChannelFuture
true
if and only if the operation has been canceled.
false
if the operation can't be canceled or is already
completed.Copyright © 2008-2016 The Netty Project. All Rights Reserved.