use of com.radixdlt.environment.EventProcessorOnRunner in project radixdlt by radixdlt.
the class RxEnvironmentModule method configure.
@Override
public void configure() {
ScheduledExecutorService ses = Executors.newSingleThreadScheduledExecutor(ThreadFactories.daemonThreads("TimeoutSender"));
bind(Environment.class).to(RxEnvironment.class);
bind(ScheduledExecutorService.class).toInstance(ses);
// TODO: Remove, still required by SimulationNodes.java
bind(new TypeLiteral<Observable<LedgerUpdate>>() {
}).toProvider(new ObservableProvider<>(LedgerUpdate.class));
bind(new TypeLiteral<Observable<BFTHighQCUpdate>>() {
}).toProvider(new ObservableProvider<>(BFTHighQCUpdate.class));
Multibinder.newSetBinder(binder(), new TypeLiteral<RxRemoteDispatcher<?>>() {
});
Multibinder.newSetBinder(binder(), new TypeLiteral<EventProcessorOnRunner<?>>() {
});
Multibinder.newSetBinder(binder(), new TypeLiteral<RemoteEventProcessorOnRunner<?>>() {
});
Multibinder.newSetBinder(binder(), new TypeLiteral<ScheduledEventProducerOnRunner<?>>() {
});
}
Aggregations