S - The type of the ListenerStore configured in the first
step.E - The type of the EventProvider configured in the second
step.public static interface EventProviderConfigurator.AsyncProviderConfigurator<S extends ListenerStore,E extends EventProvider<S>>
ExecutorService for dispatching Events using multi threading.EventProviderConfigurator.Chainable<EventProviderConfigurator.AsyncProviderConfigurator<S,E>,E> exceptionCallBack(ExceptionCallback ec)
ExceptionCallback to use.ec - The ExceptionCallback.EventProviderConfigurator.Chainable<EventProviderConfigurator.AsyncProviderConfigurator<S,E>,E> exceptionCallBack(Supplier<ExceptionCallback> callBackSupplier)
ExceptionCallback to use as a supplier.callBackSupplier - Supplier which supplies the
ExceptionCallback.EventProviderConfigurator.Chainable<EventProviderConfigurator.AsyncProviderConfigurator<S,E>,E> executor(ExecutorService executor)
ExecutorService to use.executor - The ExecutorServiceEventProviderConfigurator.Chainable<EventProviderConfigurator.AsyncProviderConfigurator<S,E>,E> synchronizeStore()
ListenerStore.synchronizedView()EventProviderConfigurator.Chainable<EventProviderConfigurator.AsyncProviderConfigurator<S,E>,E> executor(Supplier<ExecutorService> executorSupplier)
ExecutorService to use as a supplier.executorSupplier - Supplier which supplies the ExecutorService.EventProviderConfigurator.Final<StatisticsEventProvider<S,E>> statistics()
StatisticsEventProvider which counts all dispatch actions.
The nested EventProvider can be accessed using the
StatisticsEventProvider.getWrapped() method.Copyright © 2014–2015. All rights reserved.