net.groboclown.eventbus.v2.rmi
Class RemoteDistributor
java.lang.Object
|
+--net.groboclown.eventbus.v2.rmi.RemoteDistributor
- All Implemented Interfaces:
- IEventDistributor
- public class RemoteDistributor
- extends Object
- implements IEventDistributor
An interface for distributing events to any listeners. It must have a
default constructor.
- Version:
- Alpha 0.9.1d
- Author:
- Matt Albrecht
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
remoteBus
private IRemoteEventBus remoteBus
RemoteDistributor
public RemoteDistributor(IRemoteEventBus remoteBus)
initialize
public void initialize(EventBus eb)
- Sets up the local 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