public class BlockDiskKeyStore.LRUMapSizeLimited extends AbstractLRUMap<K,int[]>
| 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 maxSize) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
processRemovedLRU(K key,
int[] value)
This is called when the may key size is reached.
|
int[] |
put(K key,
int[] value) |
int[] |
remove(Object key) |
protected boolean |
shouldRemove() |
clear, containsKey, containsValue, dumpCacheEntries, dumpMap, entrySet, get, getQuiet, getStatistics, isEmpty, keySet, putAll, size, values, verifyCacheclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAllpublic static final String TAG
tag tells us which map we are working on.public LRUMapSizeLimited()
public LRUMapSizeLimited(int maxSize)
maxSize - maximum cache size in kBprotected void processRemovedLRU(K key, int[] value)
processRemovedLRU in class AbstractLRUMap<K,int[]>key - value - public int[] put(K key, int[] value)
public int[] remove(Object key)
protected boolean shouldRemove()
shouldRemove in class AbstractLRUMap<K,int[]>Copyright © 2002–2022 The Apache Software Foundation. All rights reserved.