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.ProviderConfigurator<S extends ListenerStore,E extends EventProvider<S>>
| Modifier and Type | Method and Description |
|---|---|
EventProviderConfigurator.Chainable<EventProviderConfigurator.ProviderConfigurator<S,E>,E> |
exceptionCallBack(ExceptionCallback ec)
Configures the
ExceptionCallback to use. |
EventProviderConfigurator.Chainable<EventProviderConfigurator.ProviderConfigurator<S,E>,E> |
exceptionCallBack(Supplier<ExceptionCallback> callBackSupplier)
Configures the
ExceptionCallback to use as a supplier. |
EventProviderConfigurator.Final<StatisticsEventProvider<S,E>> |
statistics()
Wraps the so far configured provider with a
StatisticsEventProvider which counts all dispatch actions. |
EventProviderConfigurator.Chainable<EventProviderConfigurator.ProviderConfigurator<S,E>,E> |
synchronizeStore()
Instruct the provider to use the synchronized (thread-safe) version
of the configured store.
|
EventProviderConfigurator.Chainable<EventProviderConfigurator.ProviderConfigurator<S,E>,E> exceptionCallBack(ExceptionCallback ec)
ExceptionCallback to use.ec - The ExceptionCallback.EventProviderConfigurator.Chainable<EventProviderConfigurator.ProviderConfigurator<S,E>,E> synchronizeStore()
ListenerStore.synchronizedView()EventProviderConfigurator.Chainable<EventProviderConfigurator.ProviderConfigurator<S,E>,E> exceptionCallBack(Supplier<ExceptionCallback> callBackSupplier)
ExceptionCallback to use as a supplier.callBackSupplier - Supplier which supplies the
ExceptionCallback.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.