net.gleamynode.netty2

Class OrderedEventDispatcher

  • Case 1: 'messageReceived' for the response message is fired before 'messageSent' for the request message is.)
  • Case 2: 'messageSent' or 'exceptionCaught' event is fired after 'connectionClosed' is fired.
  • I can't find any easy way to order read and write events for now.

    Set thread pool size (AbstractThreadPooledEventDispatcher.setThreadPoolSize(int)) and call AbstractThreadPooledEventDispatcher.start()to activate this event dispatcher.

    Please note that dispatcher threads will not terminate even if AbstractThreadPooledEventDispatcher.stop()is invoked if there are any remaining events to process for this event dispatcher. They will be terminated when JVM exits because they are daemon threads.
    Version:
    $Rev: 4 $, $Date: 2005-04-18 12:04:09 +0900 $
    Author:
    Trustin Lee (http://gleamynode.net/dev/)

    Copyright © 2004-2012 Trustin Lee. All Rights Reserved.