net.groboclown.eventbus.v2
Class LocalEventDistributor
java.lang.Object
|
+--net.groboclown.eventbus.v2.LocalEventDistributor
- All Implemented Interfaces:
- IEventDistributor
- public class LocalEventDistributor
- extends Object
- implements IEventDistributor
The default distributor - sends events asynchronously in the current
thread to all 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 |
eb
private EventBus eb
LocalEventDistributor
public LocalEventDistributor()
- Default Constructor - mandatory.
initialize
public void initialize(EventBus eb)
- Sets up the distributor after it has been created.
- Specified by:
initialize
in interface IEventDistributor
sendEvent
public void sendEvent(EventBusEvent ebe)
throws RemoteException
- Send the given event to wherever it needs to go.
- Specified by:
sendEvent
in interface IEventDistributor
Written under the LGPL