com.easyjf.cache.store
Class LruMemoryStore.SpoolingLRUMap

java.lang.Object
  extended byorg.apache.commons.collections.SequencedHashMap
      extended byorg.apache.commons.collections.LRUMap
          extended bycom.easyjf.cache.store.LruMemoryStore.SpoolingLRUMap
All Implemented Interfaces:
java.lang.Cloneable, java.io.Externalizable, java.util.Map, java.io.Serializable
Enclosing class:
LruMemoryStore

public class LruMemoryStore.SpoolingLRUMap
extends org.apache.commons.collections.LRUMap

An LRU Map implementation based on Apache Commons LRUMap.

This is used if LinkedHashMap is not found in the classpath. LinkedHashMap is part of JDK

See Also:
Serialized Form

Constructor Summary
LruMemoryStore.SpoolingLRUMap()
          Constructor.
 
Methods inherited from class org.apache.commons.collections.LRUMap
get, getMaximumSize, put, readExternal, 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
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LruMemoryStore.SpoolingLRUMap

public LruMemoryStore.SpoolingLRUMap()
Constructor. The maximum size is set to Cache#getMaxElementsInMemory. If the LRUMap gets bigger than this, #processRemovedLRU is called.