org.mentawai.cache
Class LRUCache

java.lang.Object
  extended by org.mentawai.cache.AbstractCache
      extended by org.mentawai.cache.LRUCache
All Implemented Interfaces:
Serializable, Cache

public class LRUCache
extends AbstractCache

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.mentawai.cache.AbstractCache
capacity, hits, LOAD, map, misses, name, startDate
 
Constructor Summary
LRUCache(String name, int capacity)
           
LRUCache(String name, int capacity, float load)
           
 
Method Summary
protected  Map<Object,Object> createMap(int initialCapacity, float load)
           
 
Methods inherited from class org.mentawai.cache.AbstractCache
clear, get, getSize, put, remove, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LRUCache

public LRUCache(String name,
                int capacity)

LRUCache

public LRUCache(String name,
                int capacity,
                float load)
Method Detail

createMap

protected Map<Object,Object> createMap(int initialCapacity,
                                       float load)
Specified by:
createMap in class AbstractCache


Copyright © 2013. All Rights Reserved.