
public class ChannelEventRunnable extends Object implements Runnable, EstimatableObjectWrapper
Runnable which sends the specified ChannelEvent upstream.
Most users will not see this type at all because it is used by
Executor implementors only| Constructor and Description |
|---|
ChannelEventRunnable(ChannelHandlerContext ctx,
ChannelEvent e)
Creates a
Runnable which sends the specified ChannelEvent
upstream via the specified ChannelHandlerContext. |
| Modifier and Type | Method and Description |
|---|---|
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()
Sends the event upstream.
|
Object |
unwrap()
Returns the underlying object that needs to be taken into account
by
ObjectSizeEstimator for more accurate object size estimation. |
public ChannelEventRunnable(ChannelHandlerContext ctx, ChannelEvent e)
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 Object unwrap()
EstimatableObjectWrapperObjectSizeEstimator for more accurate object size estimation.unwrap in interface EstimatableObjectWrapperCopyright © 2008-2013 JBoss, by Red Hat. All Rights Reserved.