private static final class Dispatcher.LegacyAsyncDispatcher extends Dispatcher
Dispatcher.legacyAsync() dispatcher.| Modifier and Type | Class and Description |
|---|---|
private static class |
Dispatcher.LegacyAsyncDispatcher.EventWithSubscriber |
| Modifier and Type | Field and Description |
|---|---|
private ConcurrentLinkedQueue<Dispatcher.LegacyAsyncDispatcher.EventWithSubscriber> |
queue
Global event queue.
|
| Modifier | Constructor and Description |
|---|---|
private |
LegacyAsyncDispatcher() |
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
dispatch(Object event,
Iterator<Subscriber> subscribers)
Dispatches the given
event to the given subscribers. |
immediate, legacyAsync, perThreadDispatchQueueprivate final ConcurrentLinkedQueue<Dispatcher.LegacyAsyncDispatcher.EventWithSubscriber> queue
private LegacyAsyncDispatcher()
void dispatch(Object event, Iterator<Subscriber> subscribers)
Dispatcherevent to the given subscribers.dispatch in class Dispatcherevent - event to dispatchsubscribers - subscribers to notify