org.mentawai.cache
Class FIFOCache

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

public class FIFOCache
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
FIFOCache(String name, int capacity)
           
FIFOCache(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

FIFOCache

public FIFOCache(String name,
                 int capacity)

FIFOCache

public FIFOCache(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.