org.openorb.notify.queue

Class EventQueueDispatcher

public class EventQueueDispatcher extends NotifyThread

Author: Olivier Modica Shawn Boyce

Constructor Summary
EventQueueDispatcher(String id, EventQueue queue, EventReceiver receiver, Logger logger)
Default constructor
Method Summary
voidpushEvent(Object event)
This method is invoked by the proxy upon receipt of a new event.
voidpushEvents(Object[] events)
This method is invoked by the proxy upon receipt of a new event.
voidrun()
The run method waits for new events and pulls them from the queue
voidstopThread()
Stop the thread

Constructor Detail

EventQueueDispatcher

public EventQueueDispatcher(String id, EventQueue queue, EventReceiver receiver, Logger logger)
Default constructor

Method Detail

pushEvent

public void pushEvent(Object event)
This method is invoked by the proxy upon receipt of a new event. If the class is threaded ( call to start() ) then it returns immediately. Else it returns after delivering the event to the connected consumer.

pushEvents

public void pushEvents(Object[] events)
This method is invoked by the proxy upon receipt of a new event. If the class is threaded ( call to start() ) then it returns immediately. Else it returns after delivering the event to the connected consumer.

run

public void run()
The run method waits for new events and pulls them from the queue

stopThread

public void stopThread()
Stop the thread