org.apache.jcs.auxiliary.disk.block
Class BlockDiskKeyStore.LRUMap
java.lang.Object
org.apache.jcs.utils.struct.LRUMap<K,V>
org.apache.jcs.auxiliary.disk.LRUMapJCS<K,int[]>
org.apache.jcs.auxiliary.disk.block.BlockDiskKeyStore.LRUMap
- All Implemented Interfaces:
- Map<K,int[]>
- Enclosing class:
- BlockDiskKeyStore<K extends Serializable>
public class BlockDiskKeyStore.LRUMap
- extends LRUMapJCS<K,int[]>
Class for recycling and lru. This implements the LRU overflow callback, so we can mark the
blocks as free.
| Nested classes/interfaces inherited from interface java.util.Map |
Map.Entry<K,V> |
|
Field Summary |
String |
tag
tag tells us which map we are working on. |
| Fields inherited from class org.apache.jcs.utils.struct.LRUMap |
map |
|
Method Summary |
protected void |
processRemovedLRU(K key,
int[] value)
This is called when the may key size is reached. |
| 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 |
tag
public String tag
tag tells us which map we are working on.
BlockDiskKeyStore.LRUMap
public BlockDiskKeyStore.LRUMap()
- Default
BlockDiskKeyStore.LRUMap
public BlockDiskKeyStore.LRUMap(int maxKeySize)
- Parameters:
maxKeySize -
processRemovedLRU
protected void processRemovedLRU(K key,
int[] value)
- This is called when the may key size is reached. 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<K extends Serializable,int[]>
- Parameters:
key - value -
Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.