S - The type of the ListenerStore this provider uses.public class UnrollingEventProvider<S extends ListenerStore> extends AbstractEventProvider<S>
defaultHandler, exceptionHandler| Constructor and Description |
|---|
UnrollingEventProvider(S store)
Creates a new UnrollingEventProvider using the given ListenerStore.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canDispatch()
Gets whether this EventProvider is ready for dispatching.
|
protected boolean |
isImplementationSequential()
Whether this EventProvider implementation is sequential.
|
protected <L extends Listener,E extends Event<?,L>> |
notifyListeners(E event,
BiConsumer<L,E> bc,
ExceptionCallback ec)
Notifies all listeners registered for the provided class with the
provided event.
|
checkDispatchArgs, close, createInvocation, dispatch, dispatch, dispatch, isSequential, listeners, notifySingle, setExceptionCallback, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitconfigure, createDefault, dispatch, dispatch, dispatchpublic UnrollingEventProvider(S store)
store - the store which supplies listeners to this provider.protected <L extends Listener,E extends Event<?,L>> void notifyListeners(E event, BiConsumer<L,E> bc, ExceptionCallback ec)
AbstractEventProviderExceptionCallback.
This method does not check whether this provider is ready for dispatching and might thus throw an exception when trying to dispatch an event while the provider is not ready.
notifyListeners in class AbstractEventProvider<S extends ListenerStore>L - Type of the listeners which will be notified.E - Type of the event which will be passed to a listener.event - The event to pass to each listener.bc - The method of the listener to call.ec - The callback which gets notified about exceptions.public boolean canDispatch()
EventProviderdispatchprotected boolean isImplementationSequential()
AbstractEventProviderAbstractEventProvider.isSequential() method considers the result of this method and
the result of the current ListenerStore's
isSequential method for determining
whether dispatch events of this provider are sequential.isImplementationSequential in class AbstractEventProvider<S extends ListenerStore>Copyright © 2014–2015. All rights reserved.