Uses of Interface
dk.cloudcreate.essentials.reactive.EventBus
-
Packages that use EventBus Package Description dk.cloudcreate.essentials.reactive -
-
Uses of EventBus in dk.cloudcreate.essentials.reactive
Classes in dk.cloudcreate.essentials.reactive that implement EventBus Modifier and Type Class Description classLocalEventBusSimple event bus that supports both synchronous and asynchronous subscribers that are registered and listening for events published within the local the JVM
You can have multiple instances of the LocalEventBus deployed with the local JVM, but usually one event bus is sufficient.
Example:Methods in dk.cloudcreate.essentials.reactive that return EventBus Modifier and Type Method Description EventBusEventBus. addAsyncSubscriber(EventHandler subscriber)Add an asynchronous subscriber/consumerEventBusLocalEventBus. addAsyncSubscriber(EventHandler subscriber)EventBusEventBus. addSyncSubscriber(EventHandler subscriber)Add a synchronous subscriber/consumerEventBusLocalEventBus. addSyncSubscriber(EventHandler subscriber)EventBusEventBus. publish(Object 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.EventBusLocalEventBus. publish(Object event)EventBusEventBus. removeAsyncSubscriber(EventHandler subscriber)Remove an asynchronous subscriber/consumerEventBusLocalEventBus. removeAsyncSubscriber(EventHandler subscriber)EventBusEventBus. removeSyncSubscriber(EventHandler subscriber)Remove a synchronous subscriber/consumerEventBusLocalEventBus. removeSyncSubscriber(EventHandler subscriber)
-