Package com.atlassian.event.internal
Class AsynchronousAbleEventDispatcher
java.lang.Object
com.atlassian.event.internal.AsynchronousAbleEventDispatcher
- All Implemented Interfaces:
EventDispatcher
This dispatcher will dispatch event asynchronously if:
- the event 'is' asynchronous, as resolved by the
AsynchronousEventResolverand - the invoker
supports asynchronous events
- Since:
- 2.0
-
Constructor Summary
ConstructorsConstructorDescriptionAsynchronousAbleEventDispatcher(EventExecutorFactory executorFactory) AsynchronousAbleEventDispatcher(EventExecutorFactory executorFactory, AsynchronousEventResolver asynchronousEventResolver) AsynchronousAbleEventDispatcher(EventExecutorFactory executorFactory, AsynchronousEventResolver asynchronousEventResolver, EventRunnableFactory runnableFactory) AsynchronousAbleEventDispatcher(Executor executor, AsynchronousEventResolver asynchronousEventResolver) AsynchronousAbleEventDispatcher(Executor executor, AsynchronousEventResolver asynchronousEventResolver, EventRunnableFactory runnableFactory) -
Method Summary
Modifier and TypeMethodDescriptionvoiddispatch(ListenerInvoker invoker, Object event) Dispatches the event using the invoker.protected ExecutorexecutorFor(ListenerInvoker invoker, Object event) protected Executorprotected Executor
-
Constructor Details
-
AsynchronousAbleEventDispatcher
public AsynchronousAbleEventDispatcher(Executor executor, AsynchronousEventResolver asynchronousEventResolver, EventRunnableFactory runnableFactory) -
AsynchronousAbleEventDispatcher
public AsynchronousAbleEventDispatcher(Executor executor, AsynchronousEventResolver asynchronousEventResolver) -
AsynchronousAbleEventDispatcher
public AsynchronousAbleEventDispatcher(EventExecutorFactory executorFactory, AsynchronousEventResolver asynchronousEventResolver, EventRunnableFactory runnableFactory) -
AsynchronousAbleEventDispatcher
public AsynchronousAbleEventDispatcher(EventExecutorFactory executorFactory, AsynchronousEventResolver asynchronousEventResolver) -
AsynchronousAbleEventDispatcher
-
-
Method Details
-
dispatch
Description copied from interface:EventDispatcherDispatches the event using the invoker.- Specified by:
dispatchin interfaceEventDispatcher- Parameters:
invoker- the invoker to use to dispatch the eventevent- the event to dispatch
-
executorFor
-
getSynchronousExecutor
-
getAsynchronousExecutor
-