Class BaseNodeVacuum<PK extends io.datarouter.model.key.primary.PrimaryKey<PK>,​T>

java.lang.Object
io.datarouter.storage.util.BaseNodeVacuum<PK,​T>
Direct Known Subclasses:
DatabeanVacuum, PrimaryKeyVacuum

public abstract class BaseNodeVacuum<PK extends io.datarouter.model.key.primary.PrimaryKey<PK>,​T>
extends java.lang.Object
  • Nested Class Summary

    Nested Classes 
    Modifier and Type Class Description
    static class  BaseNodeVacuum.BaseNodeVacuumBuilder<PK extends io.datarouter.model.key.primary.PrimaryKey<PK>,​T,​C extends BaseNodeVacuum.BaseNodeVacuumBuilder<PK,​T,​C>>  
  • Constructor Summary

    Constructors 
    Modifier Constructor Description
    protected BaseNodeVacuum​(io.datarouter.scanner.Scanner<T> scanner, java.util.function.Consumer<java.util.Collection<PK>> deleteConsumer, int deleteBatchSize, java.util.Optional<java.lang.Integer> logBatchSize, java.util.function.Predicate<T> shouldDelete)  
  • Method Summary

    Modifier and Type Method Description
    protected abstract PK getKey​(T item)  
    void run​(io.datarouter.instrumentation.task.TaskTracker tracker)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • BaseNodeVacuum

      protected BaseNodeVacuum​(io.datarouter.scanner.Scanner<T> scanner, java.util.function.Consumer<java.util.Collection<PK>> deleteConsumer, int deleteBatchSize, java.util.Optional<java.lang.Integer> logBatchSize, java.util.function.Predicate<T> shouldDelete)
  • Method Details

    • getKey

      protected abstract PK getKey​(T item)
    • run

      public void run​(io.datarouter.instrumentation.task.TaskTracker tracker)