public class LHMLRUMemoryCache.LHMSpooler extends LinkedHashMap<K,MemoryElementDescriptor<K,V>>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
LHMSpooler()
Initialize to a small size--for now, 1/2 of max 3rd variable "true" indicates that it
should be access and not time governed.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
removeEldestEntry(Map.Entry<K,MemoryElementDescriptor<K,V>> eldest)
Remove eldest.
|
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, replaceAll, values
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
equals, hashCode, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
public LHMSpooler()
protected boolean removeEldestEntry(Map.Entry<K,MemoryElementDescriptor<K,V>> eldest)
removeEldestEntry
in class LinkedHashMap<K extends Serializable,MemoryElementDescriptor<K extends Serializable,V extends Serializable>>
eldest
- Copyright © 2002–2015 The Apache Software Foundation. All rights reserved.