org.jboss.netty.handler.execution
Class ChannelEventRunnable

java.lang.Object
  extended by org.jboss.netty.handler.execution.ChannelEventRunnable
All Implemented Interfaces:
Runnable

public class ChannelEventRunnable
extends Object
implements Runnable

a Runnable which sends the specified ChannelEvent upstream. Most users will not see this type at all because it is used by Executor implementors only

Version:
$Rev: 472 $, $Date: 2008-11-14 16:45:53 +0900 (Fri, 14 Nov 2008) $
Author:
The Netty Project (netty-dev@lists.jboss.org), Trustin Lee (tlee@redhat.com)

Constructor Summary
ChannelEventRunnable(ChannelHandlerContext ctx, ChannelEvent e)
          Creates a Runnable which sends the specified ChannelEvent upstream via the specified ChannelHandlerContext.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChannelEventRunnable

public ChannelEventRunnable(ChannelHandlerContext ctx,
                            ChannelEvent e)
Creates a Runnable which sends the specified ChannelEvent upstream via the specified ChannelHandlerContext.

Method Detail

getContext

public ChannelHandlerContext getContext()
Returns the ChannelHandlerContext which will be used to send the ChannelEvent upstream.


getEvent

public ChannelEvent getEvent()
Returns the ChannelEvent which will be sent upstream.


run

public void run()
Sends the event upstream.

Specified by:
run in interface Runnable


Copyright © 2008-Present JBoss - a division of Red Hat. All Rights Reserved.