Uses of Interface
dk.cloudcreate.essentials.reactive.EventHandler
-
Packages that use EventHandler Package Description dk.cloudcreate.essentials.reactive -
-
Uses of EventHandler in dk.cloudcreate.essentials.reactive
Classes in dk.cloudcreate.essentials.reactive that implement EventHandler Modifier and Type Class Description classAnnotatedEventHandlerExtending this class will allow you to colocate multiple related Event handling methods inside the same class and use it together with theLocalEventBus
Each method must accept a single Event argument, return void and be annotated with theEventHandlerannotation.
The method argument type is matched against the concrete event type usingClass.isAssignableFrom(Class).
The method accessibility can be any combination of private, protected, public, etc.
Example:Methods in dk.cloudcreate.essentials.reactive with parameters of type EventHandler 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)voidOnErrorHandler. handle(EventHandler failingSubscriber, Object event, Exception exception)Will be called if a given consumer/subscriber fails to handle a messagebooleanEventBus. hasAsyncSubscriber(EventHandler subscriber)booleanLocalEventBus. hasAsyncSubscriber(EventHandler subscriber)booleanEventBus. hasSyncSubscriber(EventHandler subscriber)booleanLocalEventBus. hasSyncSubscriber(EventHandler subscriber)EventBusEventBus. removeAsyncSubscriber(EventHandler subscriber)Remove an asynchronous subscriber/consumerEventBusLocalEventBus. removeAsyncSubscriber(EventHandler subscriber)EventBusEventBus. removeSyncSubscriber(EventHandler subscriber)Remove a synchronous subscriber/consumerEventBusLocalEventBus. removeSyncSubscriber(EventHandler subscriber)
-