@Override protected int getThreadPoolSize() { // We await all async operations, which means we'll be eating up a lot of threads for this test. return super.getThreadPoolSize() * 50; }
@Before public void setUp() { this.storageFactory = new InMemoryStorageFactory(executorService()); this.durableDataLogFactory = new PermanentDurableDataLogFactory(executorService()); }
@Override protected ServiceBuilder createBuilder(ServiceBuilderConfig.Builder builderConfig, int instanceId) { return super.createBuilder(builderConfig, instanceId) .withStreamSegmentStore(setup -> { StreamSegmentStore base = new StreamSegmentService(setup.getContainerRegistry(), setup.getSegmentToContainerMapper()); return new SynchronousStreamSegmentStore(base); }); } }