@Provides @Singleton public Cleaner provideCleaner(ServicesConfig config, @Named("kvs") KeyValueService kvs, TimelockService timelock, Follower follower, TransactionService transactionService) { AtlasDbConfig atlasDbConfig = config.atlasDbConfig(); return new DefaultCleanerBuilder( kvs, timelock, ImmutableList.of(follower), transactionService) .setBackgroundScrubAggressively(atlasDbConfig.backgroundScrubAggressively()) .setBackgroundScrubBatchSize(atlasDbConfig.getBackgroundScrubBatchSize()) .setBackgroundScrubFrequencyMillis(atlasDbConfig.getBackgroundScrubFrequencyMillis()) .setBackgroundScrubThreads(atlasDbConfig.getBackgroundScrubThreads()) .setPunchIntervalMillis(atlasDbConfig.getPunchIntervalMillis()) .setTransactionReadTimeout(atlasDbConfig.getTransactionReadTimeoutMillis()) .setInitializeAsync(atlasDbConfig.initializeAsync()) .buildCleaner(); }
@Provides @Singleton public Cleaner provideCleaner(ServicesConfig config, @Named("kvs") KeyValueService kvs, LockService lock, TimestampService tss, LockClient lockClient, Follower follower, TransactionService transactionService) { AtlasDbConfig atlasDbConfig = config.atlasDbConfig(); return new DefaultCleanerBuilder( kvs, lock, tss, lockClient, ImmutableList.of(follower), transactionService) .setBackgroundScrubAggressively(atlasDbConfig.backgroundScrubAggressively()) .setBackgroundScrubBatchSize(atlasDbConfig.getBackgroundScrubBatchSize()) .setBackgroundScrubFrequencyMillis(atlasDbConfig.getBackgroundScrubFrequencyMillis()) .setBackgroundScrubThreads(atlasDbConfig.getBackgroundScrubThreads()) .setPunchIntervalMillis(atlasDbConfig.getPunchIntervalMillis()) .setTransactionReadTimeout(atlasDbConfig.getTransactionReadTimeoutMillis()) .setInitializeAsync(atlasDbConfig.initializeAsync()) .buildCleaner(); }
ImmutableList.of(follower), transactionService) .setBackgroundScrubAggressively(config().backgroundScrubAggressively()) .setBackgroundScrubBatchSize(config().getBackgroundScrubBatchSize()) .setBackgroundScrubFrequencyMillis(config().getBackgroundScrubFrequencyMillis()) .setBackgroundScrubThreads(config().getBackgroundScrubThreads())
@Provides @Singleton public Cleaner provideCleaner(ServicesConfig config, @Named("kvs") KeyValueService kvs, TimelockService timelock, Follower follower, TransactionService transactionService) { AtlasDbConfig atlasDbConfig = config.atlasDbConfig(); return new DefaultCleanerBuilder( kvs, timelock, ImmutableList.of(follower), transactionService) .setBackgroundScrubAggressively(atlasDbConfig.backgroundScrubAggressively()) .setBackgroundScrubBatchSize(atlasDbConfig.getBackgroundScrubBatchSize()) .setBackgroundScrubFrequencyMillis(atlasDbConfig.getBackgroundScrubFrequencyMillis()) .setBackgroundScrubThreads(atlasDbConfig.getBackgroundScrubThreads()) .setPunchIntervalMillis(atlasDbConfig.getPunchIntervalMillis()) .setTransactionReadTimeout(atlasDbConfig.getTransactionReadTimeoutMillis()) .setInitializeAsync(atlasDbConfig.initializeAsync()) .buildCleaner(); }
@Provides @Singleton public Cleaner provideCleaner(ServicesConfig config, @Named("kvs") KeyValueService kvs, LockService lock, TimestampService tss, LockClient lockClient, Follower follower, TransactionService transactionService) { AtlasDbConfig atlasDbConfig = config.atlasDbConfig(); return new DefaultCleanerBuilder( kvs, lock, tss, lockClient, ImmutableList.of(follower), transactionService) .setBackgroundScrubAggressively(atlasDbConfig.backgroundScrubAggressively()) .setBackgroundScrubBatchSize(atlasDbConfig.getBackgroundScrubBatchSize()) .setBackgroundScrubFrequencyMillis(atlasDbConfig.getBackgroundScrubFrequencyMillis()) .setBackgroundScrubThreads(atlasDbConfig.getBackgroundScrubThreads()) .setPunchIntervalMillis(atlasDbConfig.getPunchIntervalMillis()) .setTransactionReadTimeout(atlasDbConfig.getTransactionReadTimeoutMillis()) .setInitializeAsync(atlasDbConfig.initializeAsync()) .buildCleaner(); }
ImmutableList.of(follower), transactionService) .setBackgroundScrubAggressively(config().backgroundScrubAggressively()) .setBackgroundScrubBatchSize(config().getBackgroundScrubBatchSize()) .setBackgroundScrubFrequencyMillis(config().getBackgroundScrubFrequencyMillis()) .setBackgroundScrubThreads(config().getBackgroundScrubThreads())