org.apache.jcs.engine.memory.lru
Class LHMLRUMemoryCache.LHMSpooler

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<K,V>
          extended by java.util.LinkedHashMap
              extended by org.apache.jcs.engine.memory.lru.LHMLRUMemoryCache.LHMSpooler
All Implemented Interfaces:
Serializable, Cloneable, Map
Enclosing class:
LHMLRUMemoryCache

public class LHMLRUMemoryCache.LHMSpooler
extends LinkedHashMap

Implementation of removeEldestEntry in LinkedHashMap

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Constructor Summary
LHMLRUMemoryCache.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.
 
Method Summary
protected  boolean removeEldestEntry(Map.Entry eldest)
          Remove eldest.
 
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

LHMLRUMemoryCache.LHMSpooler

public LHMLRUMemoryCache.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. This could be configurable.

Method Detail

removeEldestEntry

protected boolean removeEldestEntry(Map.Entry eldest)
Remove eldest. Automatically called by LinkedHashMap.

Overrides:
removeEldestEntry in class LinkedHashMap
Parameters:
eldest -
Returns:
true if removed


Copyright © 2002-2012 Apache Software Foundation. All Rights Reserved.