Package io.datarouter.storage.util
Class BaseNodeVacuum.BaseNodeVacuumBuilder<PK extends io.datarouter.model.key.primary.PrimaryKey<PK>,T,C extends BaseNodeVacuum.BaseNodeVacuumBuilder<PK,T,C>>
java.lang.Object
io.datarouter.storage.util.BaseNodeVacuum.BaseNodeVacuumBuilder<PK,T,C>
- Direct Known Subclasses:
DatabeanVacuum.DatabeanVacuumBuilder,PrimaryKeyVacuum.PrimaryKeyVacuumBuilder
- Enclosing class:
- BaseNodeVacuum<PK extends io.datarouter.model.key.primary.PrimaryKey<PK>,T>
public abstract static class BaseNodeVacuum.BaseNodeVacuumBuilder<PK extends io.datarouter.model.key.primary.PrimaryKey<PK>,T,C extends BaseNodeVacuum.BaseNodeVacuumBuilder<PK,T,C>> extends Object
-
Field Summary
Fields Modifier and Type Field Description protected intdeleteBatchSizeprotected Consumer<Collection<PK>>deleteConsumerprotected Optional<Integer>logBatchSizeprotected io.datarouter.scanner.Scanner<T>scannerprotected Predicate<T>shouldDelete -
Constructor Summary
Constructors Constructor Description BaseNodeVacuumBuilder(io.datarouter.scanner.Scanner<T> scanner, Predicate<T> shouldDelete, Consumer<Collection<PK>> deleteConsumer) -
Method Summary
Modifier and Type Method Description protected abstract Cself()CwithDeleteBatchSize(int batchSize)CwithLogBatchSize(int logBatchSize)
-
Field Details
-
scanner
-
shouldDelete
-
deleteConsumer
protected final Consumer<Collection<PK extends io.datarouter.model.key.primary.PrimaryKey<PK>>> deleteConsumer -
deleteBatchSize
protected int deleteBatchSize -
logBatchSize
-
-
Constructor Details
-
Method Details