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 onlyConstructor 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()
EstimatableObjectWrapper
ObjectSizeEstimator
for more accurate object size estimation.unwrap
in interface EstimatableObjectWrapper
Copyright © 2008-2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.