public class EventBus extends Object
Event Bus: Main event management class in SensorHub.
All event producers and listeners registrations must be done through
this class (instead of directly with the source module) in order to
benefit from more advanced event dispatching implementations such as
distributed event messaging.
Modifier and Type | Field and Description |
---|---|
static String |
MAIN_TOPIC |
Constructor and Description |
---|
EventBus() |
Modifier and Type | Method and Description |
---|---|
void |
registerListener(String moduleID,
String topic,
IEventListener listener) |
IEventHandler |
registerProducer(String moduleID) |
IEventHandler |
registerProducer(String moduleID,
String topic) |
IEventHandler |
registerProducer(String moduleID,
String topic,
IEventHandler handlerImpl) |
void |
shutdown() |
void |
unregisterListener(String moduleID,
String topic,
IEventListener listener) |
void |
unregisterProducer(String moduleID,
String topic) |
public static final String MAIN_TOPIC
public IEventHandler registerProducer(String moduleID)
public IEventHandler registerProducer(String moduleID, String topic)
public IEventHandler registerProducer(String moduleID, String topic, IEventHandler handlerImpl)
public void registerListener(String moduleID, String topic, IEventListener listener)
public void unregisterListener(String moduleID, String topic, IEventListener listener)
public void shutdown()
Copyright © 2016 Sensia Software LLC. All rights reserved.