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;
}
Aggregations