com.j_spaces.map.eviction
Class LRUEvictionStrategy
java.lang.Object
com.j_spaces.map.eviction.AbstractEvictionStrategy
com.j_spaces.map.eviction.FIFOEvictionStrategy
com.j_spaces.map.eviction.LRUEvictionStrategy
- All Implemented Interfaces:
- EvictionStrategy
public class LRUEvictionStrategy
- extends FIFOEvictionStrategy
The LRU policies keep recently referenced objects. i.e.,
it replaces the object that has not been accessed for the longest time.
- Since:
- 5.0
LRUEvictionStrategy
public LRUEvictionStrategy()
touchEntry
public void touchEntry(CacheEntry entry)
- Informs the eviction strategy on a CacheEntry use.
- Specified by:
touchEntry
in interface EvictionStrategy
- Overrides:
touchEntry
in class FIFOEvictionStrategy
- Parameters:
entry
- the touched entry