public interface EventManager
EventData
,
EventNotifier
,
EventSubscriber
Modifier and Type | Field and Description |
---|---|
static String |
TOPIC_SEPARATOR
Separator used for the event name or topic.
|
Modifier and Type | Method and Description |
---|---|
void |
subscribe(String eventNameOrTopic,
EventSubscriber eventSubscriber)
Subscribes the given event subscriber to all events with specified name or
topic.
|
void |
unsubscribe(String eventNameOrTopic,
EventSubscriber eventSubscriber)
Unsubscribes the given event subscriber to all events with specified topic.
|
static final String TOPIC_SEPARATOR
void subscribe(String eventNameOrTopic, EventSubscriber eventSubscriber)
eventNameOrTopic
- The name or topic of the event.eventSubscriber
- The event subscriber.void unsubscribe(String eventNameOrTopic, EventSubscriber eventSubscriber)
eventNameOrTopic
- The name or topic of the event.eventSubscriber
- The event subscriber.Copyright © 2019. All rights reserved.