Class DefaultEventDispatcher
java.lang.Object
com.cotani.event.dispatcher.DefaultEventDispatcher
- All Implemented Interfaces:
EventDispatcher
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultEventDispatcher(EventExceptionHandler exceptionHandler) DefaultEventDispatcher(EventExceptionHandler exceptionHandler, Executor isolatedExecutor, EventDispatchPolicy policy) -
Method Summary
Modifier and TypeMethodDescription<T extends CotaniEvent>
Tdispatch(T event, List<EventSubscription> subscriptions) <T extends CotaniEvent>
CompletionStage<T> dispatchAsync(T event, List<EventSubscription> subscriptions)
-
Constructor Details
-
DefaultEventDispatcher
-
DefaultEventDispatcher
public DefaultEventDispatcher(EventExceptionHandler exceptionHandler, Executor isolatedExecutor, EventDispatchPolicy policy)
-
-
Method Details
-
dispatch
- Specified by:
dispatchin interfaceEventDispatcher
-
dispatchAsync
public <T extends CotaniEvent> CompletionStage<T> dispatchAsync(T event, List<EventSubscription> subscriptions) - Specified by:
dispatchAsyncin interfaceEventDispatcher
-