Search in sources :

Example 1 with SweepPriorityStore

use of com.palantir.atlasdb.sweep.priority.SweepPriorityStore in project atlasdb by palantir.

the class SpecificTableSweeper method create.

public static SpecificTableSweeper create(LockAwareTransactionManager txManager, KeyValueService kvs, SweepTaskRunner sweepRunner, SweepTableFactory tableFactory, BackgroundSweeperPerformanceLogger sweepPerfLogger, SweepMetricsManager sweepMetricsManager, boolean initializeAsync) {
    SweepProgressStore sweepProgressStore = SweepProgressStoreImpl.create(kvs, initializeAsync);
    SweepPriorityStore sweepPriorityStore = SweepPriorityStoreImpl.create(kvs, tableFactory, initializeAsync);
    return new SpecificTableSweeper(txManager, kvs, sweepRunner, sweepPriorityStore, sweepProgressStore, sweepPerfLogger, sweepMetricsManager, System::currentTimeMillis);
}
Also used : SweepPriorityStore(com.palantir.atlasdb.sweep.priority.SweepPriorityStore) SweepProgressStore(com.palantir.atlasdb.sweep.progress.SweepProgressStore)

Aggregations

SweepPriorityStore (com.palantir.atlasdb.sweep.priority.SweepPriorityStore)1 SweepProgressStore (com.palantir.atlasdb.sweep.progress.SweepProgressStore)1