public class SingleThreadDispatcher extends AbstractSerialDispatcher
| Modifier and Type | Class and Description |
|---|---|
static class |
SingleThreadDispatcher.NestedDispatchStrategy |
| Constructor and Description |
|---|
SingleThreadDispatcher(SingleThreadDispatcher.NestedDispatchStrategy nestedDispatchStrategy) |
| Modifier and Type | Method and Description |
|---|---|
void |
dispatch(Event<Object> event,
Map<EventHandler<Object>,EventFilter<Object>> eventHandlers,
Collection<EventHandler<Object>> undeliveredEventHandlers,
Collection<ExceptionHandler> exceptionHandlers)
Dispatches the specified event to the specified event filters and handlers.
|
void |
dispose()
Disposes all resources (for example, threads) used by this dispatcher.
|
SingleThreadDispatcher.NestedDispatchStrategy |
getNestedDispatchStrategy() |
getNestedDispatchCount, processEvent, processQueue, queueEventprocessEventThroughFilterAndHandler, processUncheckedException, processUndeliveredEventpublic SingleThreadDispatcher(SingleThreadDispatcher.NestedDispatchStrategy nestedDispatchStrategy)
public SingleThreadDispatcher.NestedDispatchStrategy getNestedDispatchStrategy()
public void dispatch(Event<Object> event, Map<EventHandler<Object>,EventFilter<Object>> eventHandlers, Collection<EventHandler<Object>> undeliveredEventHandlers, Collection<ExceptionHandler> exceptionHandlers)
Dispatcherevent - Event to be dispatched.eventHandlers - Event handlers that are candidates for receiving the event.undeliveredEventHandlers - Evant handlers that should process undelivered events.exceptionHandlers - Exception handlers to be used in case an exception is thrown during the
dispatching or processing of the event.public void dispose()
DispatcherAfter calling this method, the dispatcher may no longer be used.
Dispatcher.dispose()Copyright © 2017. All rights reserved.