K - Key classV - Value classpublic class ClockEviction<K,V> extends FreezingEvictor<K,V>
| Modifier and Type | Method and Description |
|---|---|
void |
afterEviction()
Default implementation for
EvictionInterface.afterEviction(). |
long |
getFreezeValue(K key,
TCacheHolder<V> holder)
Returns a value for the given key, that may be used by the concrete implementation of the #evictionComparator().
|
beforeEviction, compareByFreezer, evictionComparatorpublic void afterEviction()
FreezingEvictorEvictionInterface.afterEviction(). It does nothing.afterEviction in interface EvictionInterface<K,V>afterEviction in class FreezingEvictor<K,V>public long getFreezeValue(K key, TCacheHolder<V> holder)
FreezingEvictorComparator.compare(Object, Object)).
While it is recommended to conform to this, it is not required - own implementations may use any other strategy,
but should document this clearly.
There are three typical usage patterns:
getFreezeValue in interface EvictionInterface<K,V>getFreezeValue in class FreezingEvictor<K,V>key - The keyholder - The holder that holds the associated value for the keyCopyright © 2018 trivago. All rights reserved.