net.groboclown.eventbus.v1
Class ThreadedLocalEventDistributor
java.lang.Object
|
+--net.groboclown.eventbus.v1.ThreadedLocalEventDistributor
- All Implemented Interfaces:
- IEventDistributor, IObjectListener
- public class ThreadedLocalEventDistributor
- extends Object
- implements IEventDistributor, IObjectListener
Sends events asynchronously in a separate event thread to all local
listeners.
- Version:
- Alpha 0.9.0
- Author:
- Matt Albrecht
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
qthread
private QueueThread qthread
localDistrib
private LocalEventDistributor localDistrib
ThreadedLocalEventDistributor
public ThreadedLocalEventDistributor()
- Default Constructor - mandatory.
initialize
public void initialize()
- Sets up the distributor after it has been created.
- Specified by:
initialize
in interface IEventDistributor
sendEvent
public void sendEvent(EventBusObject ebo)
- Send the given event to wherever it needs to go.
- Specified by:
sendEvent
in interface IEventDistributor
processObject
public void processObject(Object o)
- Deprecated. never called explicitly
- Called when a queue listen event is sent to this listener.
- Specified by:
processObject
in interface IObjectListener
Written under the LGPL