Package one.microstream.entity
Interface EntityVersionCleaner<K>
- All Known Implementing Classes:
EntityVersionCleaner.AgePreservingInstant
,EntityVersionCleaner.AgePreservingSystemNanoTime
,EntityVersionCleaner.AgePreservingSystemTimeMillis
,EntityVersionCleaner.AmountPreserving
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface 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 Details
-
cleanVersions
-
AmountPreserving
static <K extends Comparable<? super K>> EntityVersionCleaner<K> AmountPreserving(long maxPreservedVersions) -
AmountPreserving
static <K> EntityVersionCleaner<K> AmountPreserving(long maxPreservedVersions, Comparator<K> comparator) -
AgePreservingSystemTimeMillis
-
AgePreservingSystemNanoTime
-
AgePreservingInstant
-