Search in sources :

Example 1 with AsyncEventBus

use of com.google.common.eventbus.AsyncEventBus in project graylog2-server by Graylog2.

the class EventBusProvider method get.

@Override
public EventBus get() {
    final EventBus eventBus = new AsyncEventBus("graylog-eventbus", executorService(configuration.getAsyncEventbusProcessors()));
    eventBus.register(new DeadEventLoggingListener());
    return eventBus;
}
Also used : DeadEventLoggingListener(org.graylog2.shared.events.DeadEventLoggingListener) EventBus(com.google.common.eventbus.EventBus) AsyncEventBus(com.google.common.eventbus.AsyncEventBus) AsyncEventBus(com.google.common.eventbus.AsyncEventBus)

Aggregations

AsyncEventBus (com.google.common.eventbus.AsyncEventBus)1 EventBus (com.google.common.eventbus.EventBus)1 DeadEventLoggingListener (org.graylog2.shared.events.DeadEventLoggingListener)1