FileDocCategorySizeDatePackage
UnboundedEJBObjectCache.javaAPI DocGlassfish v2 API3736Fri May 04 22:33:00 BST 2007com.sun.ejb.containers.util.cache

UnboundedEJBObjectCache

public class UnboundedEJBObjectCache extends BaseCache implements EJBObjectCache
An EJB(Local)Object cache that does not impose any limit on the number of entries
author
Mahesh Kannan

Fields Summary
Constructors Summary
public UnboundedEJBObjectCache(String name)
default constructor

 super(); 
public UnboundedEJBObjectCache(String name, long timeout)
constructor with specified timeout

        super();
    
Methods Summary
public java.lang.Objectget(java.lang.Object key, boolean incrementRefCount)

        return super.get(key);
    
public java.util.MapgetStats()

        Map map = new HashMap();
        StringBuffer sbuf = new StringBuffer();
        sbuf.append("(listSize = 0")
        .append("; cacheSize = ").append(getEntryCount())
        .append(")");
        map.put("_UnBoundedEJBObject ==> ", sbuf.toString());
        return map;
    
public voidinit(int maxEntries, int numberOfVictimsToSelect, long timeout, float loadFactor, java.util.Properties props)

        super.init(maxEntries, loadFactor, props);
    
public java.lang.Objectput(java.lang.Object key, java.lang.Object value, boolean linkWithLru)

        return super.put(key, value);
    
public java.lang.Objectremove(java.lang.Object key, boolean decrementRefCount)

        return super.remove(key);
    
public voidsetEJBObjectCacheListener(EJBObjectCacheListener listener)

        //do nothing
    
protected voidtrimItem(CacheItem item)