Package com.google.common.eventbus
Class Dispatcher.LegacyAsyncDispatcher
- java.lang.Object
-
- com.google.common.eventbus.Dispatcher
-
- com.google.common.eventbus.Dispatcher.LegacyAsyncDispatcher
-
- Enclosing class:
- Dispatcher
private static final class Dispatcher.LegacyAsyncDispatcher extends Dispatcher
Implementation of aDispatcher.legacyAsync()
dispatcher.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
Dispatcher.LegacyAsyncDispatcher.EventWithSubscriber
-
Field Summary
Fields Modifier and Type Field Description private java.util.concurrent.ConcurrentLinkedQueue<Dispatcher.LegacyAsyncDispatcher.EventWithSubscriber>
queue
Global event queue.
-
Constructor Summary
Constructors Modifier Constructor Description private
LegacyAsyncDispatcher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
dispatch(java.lang.Object event, java.util.Iterator<Subscriber> subscribers)
Dispatches the givenevent
to the givensubscribers
.-
Methods inherited from class com.google.common.eventbus.Dispatcher
immediate, legacyAsync, perThreadDispatchQueue
-
-
-
-
Field Detail
-
queue
private final java.util.concurrent.ConcurrentLinkedQueue<Dispatcher.LegacyAsyncDispatcher.EventWithSubscriber> queue
Global event queue.
-
-
Method Detail
-
dispatch
void dispatch(java.lang.Object event, java.util.Iterator<Subscriber> subscribers)
Description copied from class:Dispatcher
Dispatches the givenevent
to the givensubscribers
.- Specified by:
dispatch
in classDispatcher
-
-