Save This Page
Home » hibernate-distribution-3.3.1.GA-dist » org.hibernate » util » [javadoc | source]
org.hibernate.util
public class: SimpleMRUCache [javadoc | source]
java.lang.Object
   org.hibernate.util.SimpleMRUCache

All Implemented Interfaces:
    Serializable

Cache following a "Most Recently Used" (MRU) algorithm for maintaining a bounded in-memory size; the "Least Recently Used" (LRU) entry is the first available for removal from the cache.

This implementation uses a bounded MRU Map to limit the in-memory size of the cache. Thus the size of this cache never grows beyond the stated size.

Field Summary
public static final  int DEFAULT_STRONG_REF_COUNT     
Constructor:
 public SimpleMRUCache() 
 public SimpleMRUCache(int strongReferenceCount) 
Method from org.hibernate.util.SimpleMRUCache Summary:
clear,   get,   put,   size
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.hibernate.util.SimpleMRUCache Detail:
 public synchronized  void clear() 
 public synchronized Object get(Object key) 
 public synchronized Object put(Object key,
    Object value) 
 public synchronized int size()