public static final class ExpiryPolicy.Modified<K,V> extends java.lang.Object implements ExpiryPolicy<K,V>
ExpiryPolicy.Accessed<K,V>, ExpiryPolicy.Default<K,V>, ExpiryPolicy.Modified<K,V>
Constructor and Description |
---|
Modified(Configuration.Duration expiryDuration) |
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) |
java.lang.String |
toString() |
public Modified(Configuration.Duration expiryDuration)
public Configuration.Duration getTTLForCreatedEntry(Cache.Entry<? extends K,? extends V> entry)
getTTLForCreatedEntry
in interface ExpiryPolicy<K,V>
public Configuration.Duration getTTLForAccessedEntry(Cache.Entry<? extends K,? extends V> entry, Configuration.Duration duration)
getTTLForAccessedEntry
in interface ExpiryPolicy<K,V>
public Configuration.Duration getTTLForModifiedEntry(Cache.Entry<? extends K,? extends V> entry, Configuration.Duration duration)
getTTLForModifiedEntry
in interface ExpiryPolicy<K,V>
public java.lang.String toString()
toString
in class java.lang.Object