org.apache.jcs.auxiliary.disk
Class LRUMapJCS
java.lang.Object
org.apache.jcs.utils.struct.LRUMap
org.apache.jcs.auxiliary.disk.LRUMapJCS
- All Implemented Interfaces:
- Map
- Direct Known Subclasses:
- BlockDiskKeyStore.LRUMap, IndexedDiskCache.LRUMap
public class LRUMapJCS
- extends LRUMap
Extension of LRUMap for logging of removals. Can switch this back to a HashMap easily. This
provides some abstraction. It also makes it easy to log overflow.
Nested classes/interfaces inherited from interface java.util.Map |
Map.Entry<K,V> |
Fields inherited from class org.apache.jcs.utils.struct.LRUMap |
map |
Constructor Summary |
LRUMapJCS()
This creates an unbounded version. |
LRUMapJCS(int maxKeySize)
This creates a list bounded by the max key size argument. |
Methods inherited from class org.apache.jcs.utils.struct.LRUMap |
clear, containsKey, containsValue, dumpCacheEntries, dumpMap, entrySet, get, getChunkSize, getMaxObjects, getQuiet, getStatistics, isEmpty, keySet, put, putAll, remove, setChunkSize, size, values, verifyCache, verifyCache |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LRUMapJCS
public LRUMapJCS()
- This creates an unbounded version.
LRUMapJCS
public LRUMapJCS(int maxKeySize)
- This creates a list bounded by the max key size argument. The Boundary is enforces by an LRU
eviction policy.
This is used in the Disk cache to store keys and purgatory elements if a boundary is
requested.
The LRU memory cache uses its own LRU implementation.
- Parameters:
maxKeySize
-
processRemovedLRU
protected void processRemovedLRU(Object key,
Object value)
- This is called when an item is removed from the LRU. We just log some information.
- Overrides:
processRemovedLRU
in class LRUMap
- Parameters:
key
- value
-
Copyright © 2002-2012 Apache Software Foundation. All Rights Reserved.