quickfix.mina
Class SingleThreadedEventHandlingStrategy

java.lang.Object
  extended by quickfix.mina.SingleThreadedEventHandlingStrategy
All Implemented Interfaces:
EventHandlingStrategy

public class SingleThreadedEventHandlingStrategy
extends java.lang.Object
implements EventHandlingStrategy

Processes messages for all sessions in a single thread.


Constructor Summary
SingleThreadedEventHandlingStrategy(SessionConnector connector)
           
 
Method Summary
 void block()
           
 void blockInThread()
           
 int getQueueSize()
           
 SessionConnector getSessionConnector()
          Get the session connector associated with this strategy
 void onMessage(Session quickfixSession, Message message)
           
 void stopHandlingMessages()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SingleThreadedEventHandlingStrategy

public SingleThreadedEventHandlingStrategy(SessionConnector connector)
Method Detail

onMessage

public void onMessage(Session quickfixSession,
                      Message message)
Specified by:
onMessage in interface EventHandlingStrategy

getSessionConnector

public SessionConnector getSessionConnector()
Description copied from interface: EventHandlingStrategy
Get the session connector associated with this strategy

Specified by:
getSessionConnector in interface EventHandlingStrategy

block

public void block()

blockInThread

public void blockInThread()

stopHandlingMessages

public void stopHandlingMessages()

getQueueSize

public int getQueueSize()
Specified by:
getQueueSize in interface EventHandlingStrategy