Package one.microstream.entity
Interface EntityVersionCleaner<K>
-
- All Known Implementing Classes:
EntityVersionCleaner.AgePreservingInstant
,EntityVersionCleaner.AgePreservingSystemNanoTime
,EntityVersionCleaner.AgePreservingSystemTimeMillis
,EntityVersionCleaner.AmountPreserving
public interface EntityVersionCleaner<K>
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
EntityVersionCleaner.AgePreservingInstant
static class
EntityVersionCleaner.AgePreservingSystemNanoTime
static class
EntityVersionCleaner.AgePreservingSystemTimeMillis
static class
EntityVersionCleaner.AmountPreserving<K>
-
Method Summary
Modifier and Type Method Description static EntityVersionCleaner<Instant>
AgePreservingInstant(Duration preservedAge)
static EntityVersionCleaner<Long>
AgePreservingSystemNanoTime(long preservedAgeNanos)
static EntityVersionCleaner<Long>
AgePreservingSystemTimeMillis(long preservedAgeMillis)
static <K extends Comparable<? super K>>
EntityVersionCleaner<K>AmountPreserving(long maxPreservedVersions)
static <K> EntityVersionCleaner<K>
AmountPreserving(long maxPreservedVersions, Comparator<K> comparator)
void
cleanVersions(XTable<K,Entity> versions)
-
-
-
Method Detail
-
AmountPreserving
static <K extends Comparable<? super K>> EntityVersionCleaner<K> AmountPreserving(long maxPreservedVersions)
-
AmountPreserving
static <K> EntityVersionCleaner<K> AmountPreserving(long maxPreservedVersions, Comparator<K> comparator)
-
AgePreservingSystemTimeMillis
static EntityVersionCleaner<Long> AgePreservingSystemTimeMillis(long preservedAgeMillis)
-
AgePreservingSystemNanoTime
static EntityVersionCleaner<Long> AgePreservingSystemNanoTime(long preservedAgeNanos)
-
AgePreservingInstant
static EntityVersionCleaner<Instant> AgePreservingInstant(Duration preservedAge)
-
-