UnboundedEJBObjectCachepublic class UnboundedEJBObjectCache extends BaseCache implements EJBObjectCacheAn EJB(Local)Object cache that does not impose any limit on the
number of entries |
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.Object | get(java.lang.Object key, boolean incrementRefCount)
return super.get(key);
| public java.util.Map | getStats()
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 void | init(int maxEntries, int numberOfVictimsToSelect, long timeout, float loadFactor, java.util.Properties props)
super.init(maxEntries, loadFactor, props);
| public java.lang.Object | put(java.lang.Object key, java.lang.Object value, boolean linkWithLru)
return super.put(key, value);
| public java.lang.Object | remove(java.lang.Object key, boolean decrementRefCount)
return super.remove(key);
| public void | setEJBObjectCacheListener(EJBObjectCacheListener listener)
//do nothing
| protected void | trimItem(CacheItem item)
|
|