Example usage for com.google.common.eventbus AsyncSyncEventBus AsyncSyncEventBus

List of usage examples for com.google.common.eventbus AsyncSyncEventBus AsyncSyncEventBus

Introduction

In this page you can find the example usage for com.google.common.eventbus AsyncSyncEventBus AsyncSyncEventBus.

Prototype

public AsyncSyncEventBus(Executor executor, SubscriberExceptionHandler subscriberExceptionHandler,
            Class<? extends Annotation> annotation) 

Source Link

Usage

From source file:io.janusproject.modules.kernel.MandatoryKernelModule.java

@Provides
private static AsyncSyncEventBus createAgentInternalBus(Injector injector,
        java.util.concurrent.ExecutorService service, SubscriberExceptionHandler exceptionHandler) {
    AsyncSyncEventBus aeb = new AsyncSyncEventBus(service, exceptionHandler, Percept.class);
    // to be able to inject the SubscriberFindingStrategy
    injector.injectMembers(aeb);/*from   w  w  w.j  a va  2 s . c om*/
    return aeb;
}