Search in sources :

Example 1 with SweeperServiceImpl

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;
}
Also used : SpecificTableSweeper(com.palantir.atlasdb.sweep.SpecificTableSweeper) SweeperServiceImpl(com.palantir.atlasdb.sweep.SweeperServiceImpl)

Aggregations

SpecificTableSweeper (com.palantir.atlasdb.sweep.SpecificTableSweeper)1 SweeperServiceImpl (com.palantir.atlasdb.sweep.SweeperServiceImpl)1