org.apache.jcs.auxiliary.disk.block
Class BlockDiskKeyStore.LRUMap

java.lang.Object
  extended by org.apache.jcs.utils.struct.LRUMap
      extended by org.apache.jcs.auxiliary.disk.LRUMapJCS
          extended by org.apache.jcs.auxiliary.disk.block.BlockDiskKeyStore.LRUMap
All Implemented Interfaces:
java.util.Map
Enclosing class:
BlockDiskKeyStore

public class BlockDiskKeyStore.LRUMap
extends LRUMapJCS

Class for recylcing and lru. This implments the LRU overflow callback, so we can mark the blocks as free.


Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
java.util.Map.Entry<K,V>
 
Field Summary
 java.lang.String tag
          tag tells us which map we are working on.
 
Fields inherited from class org.apache.jcs.utils.struct.LRUMap
map
 
Constructor Summary
BlockDiskKeyStore.LRUMap()
          Default
BlockDiskKeyStore.LRUMap(int maxKeySize)
           
 
Method Summary
protected  void processRemovedLRU(java.lang.Object key, java.lang.Object value)
          This is called when the may key size is reaced.
 
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
 

Field Detail

tag

public java.lang.String tag
tag tells us which map we are working on.

Constructor Detail

BlockDiskKeyStore.LRUMap

public BlockDiskKeyStore.LRUMap()
Default


BlockDiskKeyStore.LRUMap

public BlockDiskKeyStore.LRUMap(int maxKeySize)
Parameters:
maxKeySize -
Method Detail

processRemovedLRU

protected void processRemovedLRU(java.lang.Object key,
                                 java.lang.Object value)
This is called when the may key size is reaced. The least recently used item will be passed here. We will store the position and size of the spot on disk in the recycle bin.

Overrides:
processRemovedLRU in class LRUMapJCS
Parameters:
key -
value -


Copyright © 2002-2011 Apache Software Foundation. All Rights Reserved.