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;
}
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;
}
Aggregations