public interface ExpiryPolicy<K,V>
Modifier and Type | Interface and Description |
---|---|
static class |
ExpiryPolicy.Accessed<K,V> |
static class |
ExpiryPolicy.Default<K,V>
Default expiry is to not expire.
|
static class |
ExpiryPolicy.Modified<K,V> |
Modifier and Type | Method and Description |
---|---|
Configuration.Duration |
getTTLForAccessedEntry(Cache.Entry<? extends K,? extends V> entry,
Configuration.Duration duration) |
Configuration.Duration |
getTTLForCreatedEntry(Cache.Entry<? extends K,? extends V> entry) |
Configuration.Duration |
getTTLForModifiedEntry(Cache.Entry<? extends K,? extends V> entry,
Configuration.Duration duration) |
Configuration.Duration getTTLForCreatedEntry(Cache.Entry<? extends K,? extends V> entry)
Configuration.Duration getTTLForAccessedEntry(Cache.Entry<? extends K,? extends V> entry, Configuration.Duration duration)
Configuration.Duration getTTLForModifiedEntry(Cache.Entry<? extends K,? extends V> entry, Configuration.Duration duration)