Class SnapshotVacuumConfig

java.lang.Object
io.datarouter.filesystem.snapshot.group.vacuum.SnapshotVacuumConfig

public class SnapshotVacuumConfig
extends java.lang.Object
  • Field Summary

    Fields 
    Modifier and Type Field Description
    static SnapshotVacuumConfig DEFAULT  
    java.util.Optional<java.lang.Integer> maxVersions
    After retaining minVersions and deleting snapshots older than the ttl, delete the oldest snapshots over maxVersions
  • Constructor Summary

    Constructors 
    Constructor Description
    SnapshotVacuumConfig​(java.lang.Integer minVersions, java.time.Duration ttl, java.lang.Integer maxVersions)  
  • Method Summary

    Modifier and Type Method Description
    int getMinVersions()  
    java.util.Optional<java.lang.Integer> optMaxVersions()  
    java.util.Optional<java.time.Duration> optTtl()  

    Methods inherited from class java.lang.Object

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

    • DEFAULT

      public static final SnapshotVacuumConfig DEFAULT
    • maxVersions

      public final java.util.Optional<java.lang.Integer> maxVersions
      After retaining minVersions and deleting snapshots older than the ttl, delete the oldest snapshots over maxVersions
  • Constructor Details

    • SnapshotVacuumConfig

      public SnapshotVacuumConfig​(java.lang.Integer minVersions, java.time.Duration ttl, java.lang.Integer maxVersions)
  • Method Details

    • getMinVersions

      public int getMinVersions()
    • optTtl

      public java.util.Optional<java.time.Duration> optTtl()
    • optMaxVersions

      public java.util.Optional<java.lang.Integer> optMaxVersions()