@Nonnull Dispatcher ioDispatcher,
@Nonnull Reactor eventsReactor) {
Assert.notNull(env, "IO Dispatcher cannot be null");
Assert.notNull(env, "Events Reactor cannot be null");
this.env = env;
this.ioReactor = new Reactor(ioDispatcher,
null,
eventsReactor.getDispatchErrorHandler(),
eventsReactor.getUncaughtErrorHandler());
this.eventsReactor = new Reactor(eventsReactor.getDispatcher(),
null,
eventsReactor.getDispatchErrorHandler(),
eventsReactor.getUncaughtErrorHandler());
this.eventsReactor.getConsumerRegistry().clear();
for (Registration<? extends Consumer<?>> reg : eventsReactor.getConsumerRegistry()) {