|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.collections.SequencedHashMap org.apache.commons.collections.LRUMap net.sf.ehcache.store.LruMemoryStore.SpoolingLRUMap
public final class LruMemoryStore.SpoolingLRUMap
An LRU Map implementation based on Apache Commons LRUMap.
This is used ifLinkedHashMap
is not found in the classpath.
LinkedHashMap is part of JDK
Constructor Summary | |
---|---|
LruMemoryStore.SpoolingLRUMap()
Constructor. |
Method Summary | |
---|---|
protected void |
processRemovedLRU(java.lang.Object key,
java.lang.Object value)
Called after the element has been removed. |
Methods inherited from class org.apache.commons.collections.LRUMap |
---|
get, getMaximumSize, put, readExternal, removeLRU, setMaximumSize, writeExternal |
Methods inherited from class org.apache.commons.collections.SequencedHashMap |
---|
clear, clone, containsKey, containsValue, entrySet, equals, get, getFirst, getFirstKey, getFirstValue, getLast, getLastKey, getLastValue, getValue, hashCode, indexOf, isEmpty, iterator, keySet, lastIndexOf, putAll, remove, remove, sequence, size, toString, values |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LruMemoryStore.SpoolingLRUMap()
Ehcache.getMaxElementsInMemory()
. If the
LRUMap gets bigger than this, processRemovedLRU(java.lang.Object, java.lang.Object)
is called.
Method Detail |
---|
protected final void processRemovedLRU(java.lang.Object key, java.lang.Object value)
processRemovedLRU
in class org.apache.commons.collections.LRUMap
key
- value
-
|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |