org.apache.jcs.auxiliary.disk
Class LRUMapJCS

java.lang.Object
  extended byorg.apache.jcs.utils.struct.LRUMap
      extended byorg.apache.jcs.auxiliary.disk.LRUMapJCS
All Implemented Interfaces:
java.util.Map
Direct Known Subclasses:
IndexedDiskCache.LRUMap

public class LRUMapJCS
extends LRUMap

Extension of LRUMap for logging of removals. Can switch this back to a HashMap easily.


Nested Class Summary
 
Nested classes inherited from class java.util.Map
java.util.Map.Entry
 
Field Summary
 
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.
 
Method Summary
protected  void processRemovedLRU(java.lang.Object key, java.lang.Object value)
          This is called when an item is removed from the LRU.
 
Methods inherited from class org.apache.jcs.utils.struct.LRUMap
clear, containsKey, containsValue, dumpCacheEntries, dumpMap, entrySet, get, getChunkSize, 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
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

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 -
Method Detail

processRemovedLRU

protected void processRemovedLRU(java.lang.Object key,
                                 java.lang.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-2007 Apache Software Foundation. All Rights Reserved.