Save This Page
Home » activemq-parent-5.3.1-source-release » org.apache.kahadb.util » [javadoc | source]
org.apache.kahadb.util
public class: LRUCache [javadoc | source]
java.lang.Object
   java.util.AbstractMap
      java.util.HashMap
         java.util.LinkedHashMap<K, V>
            org.apache.kahadb.util.LRUCache

All Implemented Interfaces:
    Map, Serializable, Cloneable

A Simple LRU Cache
Field Summary
protected  int maxCacheSize     
Fields inherited from java.util.HashMap:
DEFAULT_INITIAL_CAPACITY,  MAXIMUM_CAPACITY,  DEFAULT_LOAD_FACTOR,  table,  size,  threshold,  loadFactor,  modCount
Fields inherited from java.util.AbstractMap:
keySet,  values
Constructor:
 public LRUCache() 
 public LRUCache(int maximumCacheSize) 
 public LRUCache(int initialCapacity,
    int maximumCacheSize,
    float loadFactor,
    boolean accessOrder) 
Method from org.apache.kahadb.util.LRUCache Summary:
getMaxCacheSize,   removeEldestEntry,   setMaxCacheSize
Methods from java.util.LinkedHashMap:
access$000,   access$100,   addEntry,   clear,   containsValue,   createEntry,   get,   init,   newEntryIterator,   newKeyIterator,   newValueIterator,   removeEldestEntry,   transfer
Methods from java.util.HashMap:
addEntry,   capacity,   clear,   clone,   containsKey,   containsValue,   createEntry,   entrySet,   get,   getEntry,   hash,   indexFor,   init,   isEmpty,   keySet,   loadFactor,   newEntryIterator,   newKeyIterator,   newValueIterator,   put,   putAll,   remove,   removeEntryForKey,   removeMapping,   resize,   size,   transfer,   values
Methods from java.util.AbstractMap:
access$000,   clear,   clone,   containsKey,   containsValue,   entrySet,   equals,   get,   hashCode,   isEmpty,   keySet,   put,   putAll,   remove,   size,   toString,   values
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.kahadb.util.LRUCache Detail:
 public int getMaxCacheSize() 
 protected boolean removeEldestEntry(Entry<K, V> eldest) 
 public  void setMaxCacheSize(int maxCacheSize)