use of reactor.Environment in project kylo by Teradata.
the class ReactorConfiguration method respondibleAlertsEventBus.
@Bean(name = "respondableAlertsEventBus")
public EventBus respondibleAlertsEventBus() {
Environment env = reactorEnvironment();
Logger log = LoggerFactory.getLogger(EventBus.class.getName() + "- Respondavle alerts event bus");
return EventBus.config().env(env).dispatcher(env.getDefaultDispatcher()).dispatchErrorHandler((t) -> {
log.error("Alert event bus dispatch error", t);
}).get();
}
use of reactor.Environment in project kylo by Teradata.
the class ReactorConfiguration method alertsEventBus.
@Bean(name = "alertsEventBus")
public EventBus alertsEventBus() {
Environment env = reactorEnvironment();
Logger log = LoggerFactory.getLogger(EventBus.class.getName() + "- Alerts event bus");
return EventBus.config().env(env).dispatcher(env.getDefaultDispatcher()).dispatchErrorHandler((t) -> {
log.error("Alert event bus dispatch error", t);
}).get();
}
use of reactor.Environment in project kylo by Teradata.
the class ReactorConfiguration method metadataEventBus.
@Bean(name = "metadataEventBus")
public EventBus metadataEventBus() {
Environment env = reactorEnvironment();
Logger log = LoggerFactory.getLogger(EventBus.class.getName() + "- Metadata event bus");
return EventBus.config().env(env).dispatcher(env.getDefaultDispatcher()).dispatchErrorHandler((t) -> {
log.error("Metadata event bus dispatch error", t);
}).get();
}
Aggregations