org.apache.jcs.engine.memory.lru
Class LHMLRUMemoryCache.LHMSpooler
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<K,V>
java.util.LinkedHashMap
org.apache.jcs.engine.memory.lru.LHMLRUMemoryCache.LHMSpooler
- All Implemented Interfaces:
- Serializable, Cloneable, Map
- Enclosing class:
- LHMLRUMemoryCache
public class LHMLRUMemoryCache.LHMSpooler
- extends LinkedHashMap
Implementation of removeEldestEntry in LinkedHashMap
- See Also:
- Serialized Form
Constructor Summary |
LHMLRUMemoryCache.LHMSpooler()
Initialize to a small size--for now, 1/2 of max 3rd variable "true" indicates that it
should be access and not time governed. |
Methods inherited from interface java.util.Map |
containsKey, entrySet, equals, hashCode, isEmpty, keySet, put, putAll, remove, size, values |
LHMLRUMemoryCache.LHMSpooler
public LHMLRUMemoryCache.LHMSpooler()
- Initialize to a small size--for now, 1/2 of max 3rd variable "true" indicates that it
should be access and not time governed. This could be configurable.
removeEldestEntry
protected boolean removeEldestEntry(Map.Entry eldest)
- Remove eldest. Automatically called by LinkedHashMap.
- Overrides:
removeEldestEntry
in class LinkedHashMap
- Parameters:
eldest
-
- Returns:
- true if removed
Copyright © 2002-2012 Apache Software Foundation. All Rights Reserved.