LocalEventBus<EVENT_TYPE> |
LocalEventBus.addAsyncSubscriber(Consumer<EVENT_TYPE> subscriber) |
Add an asynchronous subscriber/consumer
|
LocalEventBus<EVENT_TYPE> |
LocalEventBus.addSyncSubscriber(Consumer<EVENT_TYPE> subscriber) |
Add a synchronous subscriber/consumer
|
LocalEventBus<EVENT_TYPE> |
LocalEventBus.publish(EVENT_TYPE event) |
Publish the event to all subscribers/consumer
First we call all asynchronous subscribers, after which we will call all synchronous subscribers on the calling thread (i.e.
|
LocalEventBus<EVENT_TYPE> |
LocalEventBus.removeAsyncSubscriber(Consumer<EVENT_TYPE> subscriber) |
Remove an asynchronous subscriber/consumer
|
LocalEventBus<EVENT_TYPE> |
LocalEventBus.removeSyncSubscriber(Consumer<EVENT_TYPE> subscriber) |
Remove a synchronous subscriber/consumer
|