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 SnapshotVacuumConfigDEFAULTjava.util.Optional<java.lang.Integer>maxVersionsAfter 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 intgetMinVersions()java.util.Optional<java.lang.Integer>optMaxVersions()java.util.Optional<java.time.Duration>optTtl()
-
Field Details
-
DEFAULT
-
maxVersions
public final java.util.Optional<java.lang.Integer> maxVersionsAfter 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()
-