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, 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 maxSize)
maxSize
- maximum cache size in kBpublic int[] put(K key, int[] value)
public int[] remove(Object key)
protected void processRemovedLRU(K key, int[] value)
processRemovedLRU
in class AbstractLRUMap<K,int[]>
key
- value
- protected boolean shouldRemove()
shouldRemove
in class AbstractLRUMap<K,int[]>
Copyright © 2002–2019 The Apache Software Foundation. All rights reserved.