public class IndexedDiskCache.LRUMapSizeLimited extends AbstractLRUMap<K,IndexedDiskElementDescriptor>
Modifier and Type | Field and Description |
---|---|
static String |
TAG
tag tells us which map we are working on. |
Constructor and Description |
---|
LRUMapSizeLimited()
Default
|
LRUMapSizeLimited(int maxKeySize) |
Modifier and Type | Method and Description |
---|---|
protected void |
processRemovedLRU(K key,
IndexedDiskElementDescriptor value)
This is called when the may key size is reached.
|
IndexedDiskElementDescriptor |
put(K key,
IndexedDiskElementDescriptor value) |
IndexedDiskElementDescriptor |
remove(Object key) |
protected boolean |
shouldRemove() |
clear, containsKey, containsValue, dumpCacheEntries, dumpMap, entrySet, get, getChunkSize, getQuiet, getStatistics, isEmpty, keySet, putAll, setChunkSize, size, values, verifyCache, verifyCache
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
public static final String TAG
tag
tells us which map we are working on.public LRUMapSizeLimited()
public LRUMapSizeLimited(int maxKeySize)
maxKeySize
- public IndexedDiskElementDescriptor put(K key, IndexedDiskElementDescriptor value)
put
in interface Map<K,IndexedDiskElementDescriptor>
put
in class AbstractLRUMap<K,IndexedDiskElementDescriptor>
public IndexedDiskElementDescriptor remove(Object key)
remove
in interface Map<K,IndexedDiskElementDescriptor>
remove
in class AbstractLRUMap<K,IndexedDiskElementDescriptor>
protected void processRemovedLRU(K key, IndexedDiskElementDescriptor value)
processRemovedLRU
in class AbstractLRUMap<K,IndexedDiskElementDescriptor>
key
- value
- protected boolean shouldRemove()
shouldRemove
in class AbstractLRUMap<K,IndexedDiskElementDescriptor>
Copyright © 2002–2018 The Apache Software Foundation. All rights reserved.