Class BlockDiskKeyStore.LRUMapSizeLimited
java.lang.Object
org.apache.commons.jcs3.utils.struct.AbstractLRUMap<K,int[]>
 
org.apache.commons.jcs3.auxiliary.disk.block.BlockDiskKeyStore.LRUMapSizeLimited
- All Implemented Interfaces:
- Map<K,- int[]> 
- Enclosing class:
- BlockDiskKeyStore<K>
Class for recycling and lru. This implements the LRU size overflow
 callback, so we can mark the blocks as free.
- 
Nested Class Summary
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidprocessRemovedLRU(K key, int[] value) This is called when the may key size is reached.int[]int[]protected booleanMethods inherited from class org.apache.commons.jcs3.utils.struct.AbstractLRUMapclear, containsKey, containsValue, dumpCacheEntries, dumpMap, entrySet, get, getQuiet, getStatistics, isEmpty, keySet, putAll, size, values, verifyCacheMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Mapcompute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
- 
Field Details- 
TAGtagtells us which map we are working on.- See Also:
 
 
- 
- 
Constructor Details- 
LRUMapSizeLimitedpublic LRUMapSizeLimited()Default
- 
LRUMapSizeLimited- Parameters:
- maxSize- maximum cache size in kB
 
 
- 
- 
Method Details- 
processRemovedLRUThis 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:
- processRemovedLRUin class- AbstractLRUMap<K,- int[]> 
- Parameters:
- key-
- value-
 
- 
put
- 
remove
- 
shouldRemove- Specified by:
- shouldRemovein class- AbstractLRUMap<K,- int[]> 
 
 
-