| Constructor and Description |
|---|
EventBusAsyncImpl(Executor executor)
See
AsyncEventBus.AsyncEventBus(Executor). |
EventBusAsyncImpl(Executor executor,
String eventBusId)
See
AsyncEventBus.AsyncEventBus(String, Executor). |
EventBusAsyncImpl(Executor executor,
com.google.common.eventbus.SubscriberExceptionHandler exceptionHandler)
See
AsyncEventBus.AsyncEventBus(Executor, SubscriberExceptionHandler). |
| Modifier and Type | Method and Description |
|---|---|
protected com.google.common.eventbus.AsyncEventBus |
getEventBus() |
<E extends Event> |
publish(E event)
Publishes an event to the event bus.
|
void |
subscribe(Object object)
Subscribes to events published by this event bus.
|
void |
unsubscribe(Object object)
Unsubscribes to events published by this event bus.
|
public EventBusAsyncImpl(Executor executor)
AsyncEventBus.AsyncEventBus(Executor).public EventBusAsyncImpl(Executor executor, String eventBusId)
AsyncEventBus.AsyncEventBus(String, Executor).public EventBusAsyncImpl(Executor executor, com.google.common.eventbus.SubscriberExceptionHandler exceptionHandler)
AsyncEventBus.AsyncEventBus(Executor, SubscriberExceptionHandler).protected com.google.common.eventbus.AsyncEventBus getEventBus()
public <E extends Event> void publish(E event)
public void subscribe(Object object)
public void unsubscribe(Object object)
unsubscribe in interface EventBusCopyright © 2016–2017. All rights reserved.