@Override
protected void configure() {
// This is holding all our metrics.
bind(MetricRegistry.class).toProvider(MetricRegistryProvider.class).asEagerSingleton();
bind(LocalMetricRegistry.class).in(Scopes.NO_SCOPE); // must not be a singleton!
bind(ThroughputStats.class).toInstance(new ThroughputStats());
bind(ProcessBufferWatermark.class).toInstance(new ProcessBufferWatermark());
bind(InstantiationService.class).toInstance(instantiationService);
install(new FactoryModuleBuilder().build(ProcessBuffer.Factory.class));