Search in sources :

Example 1 with TargetedSweepFollower

use of com.palantir.atlasdb.sweep.queue.TargetedSweepFollower in project atlasdb by palantir.

the class AtlasDbEteServer method initializeAndGet.

private TargetedSweeper initializeAndGet(TargetedSweeper sweeper, TransactionManager txManager) {
    // Intentionally providing the immutable timestamp instead of unreadable to avoid the delay
    sweeper.initializeWithoutRunning(new SpecialTimestampsSupplier(txManager::getImmutableTimestamp, txManager::getImmutableTimestamp), txManager.getTimelockService(), txManager.getKeyValueService(), TransactionServices.createRaw(txManager.getKeyValueService(), txManager.getTimestampService(), false), new TargetedSweepFollower(ImmutableList.of(FOLLOWER), txManager));
    sweeper.runInBackground();
    return sweeper;
}
Also used : TargetedSweepFollower(com.palantir.atlasdb.sweep.queue.TargetedSweepFollower) SpecialTimestampsSupplier(com.palantir.atlasdb.sweep.queue.SpecialTimestampsSupplier)

Aggregations

SpecialTimestampsSupplier (com.palantir.atlasdb.sweep.queue.SpecialTimestampsSupplier)1 TargetedSweepFollower (com.palantir.atlasdb.sweep.queue.TargetedSweepFollower)1