Class IndexedDiskCache.LRUMapCountLimited
java.lang.Object
org.apache.commons.jcs3.utils.struct.AbstractLRUMap<K,V>
 
org.apache.commons.jcs3.utils.struct.LRUMap<K,IndexedDiskElementDescriptor>
 
org.apache.commons.jcs3.auxiliary.disk.indexed.IndexedDiskCache.LRUMapCountLimited
- All Implemented Interfaces:
- Map<K,- IndexedDiskElementDescriptor> 
- Enclosing class:
- IndexedDiskCache<K,V> 
Class for recycling and lru. This implements the LRU overflow callback, so we can add items
 to the recycle bin. This class counts the elements to decide, when to throw away an element
- 
Nested Class Summary
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidprocessRemovedLRU(K key, IndexedDiskElementDescriptor value) This is called when the may key size is reached.Methods inherited from class org.apache.commons.jcs3.utils.struct.LRUMapshouldRemoveMethods inherited from class org.apache.commons.jcs3.utils.struct.AbstractLRUMapclear, containsKey, containsValue, dumpCacheEntries, dumpMap, entrySet, get, getQuiet, getStatistics, isEmpty, keySet, put, putAll, remove, 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
- 
Constructor Details- 
LRUMapCountLimited
 
- 
- 
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,- IndexedDiskElementDescriptor> 
- Parameters:
- key-
- value-
 
 
-