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
FieldsModifier and TypeFieldDescriptionprotected intprotected final Consumer<Collection<PK>>protected final io.datarouter.scanner.Scanner<T> -
Constructor Summary
ConstructorsConstructorDescriptionBaseNodeVacuumBuilder(io.datarouter.scanner.Scanner<T> scanner, Predicate<T> shouldDelete, Consumer<Collection<PK>> deleteConsumer) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract Cself()withDeleteBatchSize(int batchSize) withLogBatchSize(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
-
BaseNodeVacuumBuilder
-
-
Method Details
-
self
-
withDeleteBatchSize
-
withLogBatchSize
-