K - Key classV - Value classpublic class LRUEviction<K,V> extends FreezingEvictor<K,V>
| Constructor and Description |
|---|
LRUEviction() |
| Modifier and Type | Method and Description |
|---|---|
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().
|
afterEviction, beforeEviction, compareByFreezer, evictionComparatorpublic 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.