| Constructor and Description |
|---|
EventBusImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
dispatch(ScoreEvent... events)
dispatch the given events, meaning relevant handlers will be called based on the event types
|
void |
subscribe(ScoreEventListener eventListener,
Set<String> eventTypes)
register listener for event types
|
void |
unsubscribe(ScoreEventListener eventListener)
remove the given handler
|
public void subscribe(ScoreEventListener eventListener, Set<String> eventTypes)
EventBuspublic void unsubscribe(ScoreEventListener eventListener)
EventBusunsubscribe in interface EventBuseventListener - - the listener to removepublic void dispatch(ScoreEvent... events) throws InterruptedException
EventBusdispatch in interface EventBusevents - one or more score event to dispatchInterruptedExceptionCopyright © 2020. All rights reserved.