|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.AbstractMap<K,V> java.util.HashMap<K,V> java.util.LinkedHashMap net.sf.ehcache.store.LruMemoryStore.SpoolingLinkedHashMap
public final class LruMemoryStore.SpoolingLinkedHashMap
An extension of LinkedHashMap which overrides removeEldestEntry(java.util.Map.Entry)
to persist cache entries to the auxiliary cache before they are removed.
Constructor Summary | |
---|---|
LruMemoryStore.SpoolingLinkedHashMap()
Default constructor. |
Method Summary | |
---|---|
protected boolean |
removeEldestEntry(java.util.Map.Entry eldest)
Returns true if this map should remove its eldest entry. |
Methods inherited from class java.util.LinkedHashMap |
---|
clear, containsValue, get |
Methods inherited from class java.util.HashMap |
---|
clone, containsKey, entrySet, isEmpty, keySet, put, putAll, remove, size, values |
Methods inherited from class java.util.AbstractMap |
---|
equals, hashCode, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map |
---|
containsKey, entrySet, equals, hashCode, isEmpty, keySet, put, putAll, remove, size, values |
Constructor Detail |
---|
public LruMemoryStore.SpoolingLinkedHashMap()
Method Detail |
---|
protected final boolean removeEldestEntry(java.util.Map.Entry eldest)
removeEldestEntry
in class java.util.LinkedHashMap
eldest
- The least recently inserted entry in the map, or if
this is an access-ordered map, the least recently accessed
entry. This is the entry that will be removed it this
method returns true. If the map was empty prior
to the put or putAll invocation resulting
in this invocation, this will be the entry that was just
inserted; in other words, if the map contains a single
entry, the eldest entry is also the newest.
|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |