public abstract class ChannelEventRunnable extends java.lang.Object implements java.lang.Runnable, EstimatableObjectWrapper
限定符和类型 | 字段和说明 |
---|---|
protected ChannelHandlerContext |
ctx |
protected ChannelEvent |
e |
protected static java.lang.ThreadLocal<java.util.concurrent.Executor> |
PARENT
An internal use only thread-local variable that tells the
Executor that this worker acquired a worker thread from. |
限定符 | 构造器和说明 |
---|---|
protected |
ChannelEventRunnable(ChannelHandlerContext ctx,
ChannelEvent e,
java.util.concurrent.Executor executor)
Creates a
Runnable which sends the specified ChannelEvent
upstream via the specified ChannelHandlerContext . |
限定符和类型 | 方法和说明 |
---|---|
protected abstract void |
doRun() |
ChannelHandlerContext |
getContext()
Returns the
ChannelHandlerContext which will be used to
send the ChannelEvent upstream. |
ChannelEvent |
getEvent()
Returns the
ChannelEvent which will be sent upstream. |
void |
run() |
java.lang.Object |
unwrap()
Returns the underlying object that needs to be taken into account
by
ObjectSizeEstimator for more accurate object size estimation. |
protected static final java.lang.ThreadLocal<java.util.concurrent.Executor> PARENT
Executor
that this worker acquired a worker thread from.protected final ChannelHandlerContext ctx
protected final ChannelEvent e
protected ChannelEventRunnable(ChannelHandlerContext ctx, ChannelEvent e, java.util.concurrent.Executor executor)
Runnable
which sends the specified ChannelEvent
upstream via the specified ChannelHandlerContext
.public ChannelHandlerContext getContext()
ChannelHandlerContext
which will be used to
send the ChannelEvent
upstream.public ChannelEvent getEvent()
ChannelEvent
which will be sent upstream.public java.lang.Object unwrap()
EstimatableObjectWrapper
ObjectSizeEstimator
for more accurate object size estimation.unwrap
在接口中 EstimatableObjectWrapper
public final void run()
run
在接口中 java.lang.Runnable
protected abstract void doRun()