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 |
---|
BlockDiskKeyStore.LRUMapSizeLimited()
Default
|
BlockDiskKeyStore.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
public static final String TAG
tag
tells us which map we are working on.public BlockDiskKeyStore.LRUMapSizeLimited()
public BlockDiskKeyStore.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–2017 The Apache Software Foundation. All rights reserved.