Search in sources :

Example 1 with EventBus

use of com.b2international.snowowl.internal.eventbus.EventBus in project snow-owl by b2ihealthcare.

the class EventBusUtil method getBus.

/**
 * Returns a simple unmanaged, activated EventBus with global identifier,
 * {@link EventBusConstants#GLOBAL_BUS}.
 *
 * @return
 */
public static final IEventBus getBus() {
    final EventBus bus = new EventBus();
    LifecycleUtil.activate(bus);
    return bus;
}
Also used : EventBus(com.b2international.snowowl.internal.eventbus.EventBus)

Example 2 with EventBus

use of com.b2international.snowowl.internal.eventbus.EventBus in project snow-owl by b2ihealthcare.

the class EventBusUtil method getBus.

/**
 * Returns a simple unmanaged, activated EventBus for the custom identifier.
 *
 * @return
 */
public static final IEventBus getBus(String name, int numberOfWorkers) {
    final EventBus bus = new EventBus(name, numberOfWorkers);
    LifecycleUtil.activate(bus);
    return bus;
}
Also used : EventBus(com.b2international.snowowl.internal.eventbus.EventBus)

Aggregations

EventBus (com.b2international.snowowl.internal.eventbus.EventBus)2