net.sf.ehcache.store
public final class LruMemoryStore.SpoolingLinkedHashMap extends LinkedHashMap
Constructor Summary | |
---|---|
SpoolingLinkedHashMap()
Default constructor.
|
Method Summary | |
---|---|
protected boolean | removeEldestEntry(Entry eldest)
Returns true if this map should remove its eldest entry.
|
Parameters: 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.
Returns: true if the eldest entry should be removed from the map; false if it should be retained.