use of com.palantir.atlasdb.sweep.SweeperServiceImpl in project atlasdb by palantir.
the class TransactionManagers method initializeSweepEndpoint.
private static SpecificTableSweeper initializeSweepEndpoint(Consumer<Object> env, KeyValueService kvs, SerializableTransactionManager transactionManager, SweepTaskRunner sweepRunner, BackgroundSweeperPerformanceLogger sweepPerfLogger, SweepMetricsManager 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;
}
Aggregations