Package org.apache.cassandra.utils
Class ExpiringMemoizingSupplier<T>
java.lang.Object
org.apache.cassandra.utils.ExpiringMemoizingSupplier<T>
- All Implemented Interfaces:
Supplier<T>
An implementation similar to Guava's Suppliers.memoizeWithExpiration(Supplier)
but allowing for memoization to be skipped.
See CASSANDRA-16148
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic class -
Method Summary
Modifier and TypeMethodDescriptionvoidexpire()get()static <T> Supplier<T>memoizeWithExpiration(Supplier<ExpiringMemoizingSupplier.ReturnValue<T>> delegate, long duration, TimeUnit unit) toString()