@Override @Before public void setup() { super.setup(); sweeperService = new SweeperServiceImpl(specificTableSweeper, sweepBatchConfigSource); }
private static SpecificTableSweeper initializeSweepEndpoint( Consumer<Object> env, KeyValueService kvs, TransactionManager transactionManager, SweepTaskRunner sweepRunner, BackgroundSweeperPerformanceLogger sweepPerfLogger, LegacySweepMetrics sweepMetrics, boolean initializeAsync, AdjustableSweepBatchConfigSource sweepBatchConfigSource) { SpecificTableSweeper specificTableSweeper = SpecificTableSweeper.create( transactionManager, kvs, sweepRunner, SweepTableFactory.of(), sweepPerfLogger, sweepMetrics, initializeAsync); env.accept(new SweeperServiceImpl(specificTableSweeper, sweepBatchConfigSource)); return specificTableSweeper; }
@Override @Before public void setup() { super.setup(); sweeperService = new SweeperServiceImpl(specificTableSweeper, sweepBatchConfigSource); }
private static SpecificTableSweeper initializeSweepEndpoint( Consumer<Object> env, KeyValueService kvs, TransactionManager transactionManager, SweepTaskRunner sweepRunner, BackgroundSweeperPerformanceLogger sweepPerfLogger, LegacySweepMetrics sweepMetrics, boolean initializeAsync, AdjustableSweepBatchConfigSource sweepBatchConfigSource) { SpecificTableSweeper specificTableSweeper = SpecificTableSweeper.create( transactionManager, kvs, sweepRunner, SweepTableFactory.of(), sweepPerfLogger, sweepMetrics, initializeAsync); env.accept(new SweeperServiceImpl(specificTableSweeper, sweepBatchConfigSource)); return specificTableSweeper; }