public class UnboundedEJBObjectCache extends com.sun.appserv.util.cache.BaseCache implements EJBObjectCache
| Constructor and Description |
|---|
UnboundedEJBObjectCache(String name)
default constructor
|
UnboundedEJBObjectCache(String name,
long timeout)
constructor with specified timeout
|
| Modifier and Type | Method and Description |
|---|---|
Object |
get(Object key,
boolean incrementRefCount) |
Map |
getStats() |
void |
init(int maxEntries,
int numberOfVictimsToSelect,
long timeout,
float loadFactor,
Properties props) |
Object |
put(Object key,
Object value,
boolean linkWithLru) |
Object |
remove(Object key,
boolean decrementRefCount) |
void |
setEJBObjectCacheListener(EJBObjectCacheListener listener) |
protected void |
trimItem(com.sun.appserv.util.cache.BaseCache.CacheItem item) |
_put, _remove, _removeItem, add, add, addCacheListener, clear, clearStats, contains, createItem, decrementEntryCount, destroy, elements, eq, get, get, getAll, getEntryCount, getIndex, getIndex, getStatByName, handleOverflow, hash, incrementAddCount, incrementEntryCount, incrementHitCount, incrementMissCount, incrementOverflowCount, incrementRefreshCount, incrementRemovalCount, init, init, isEmpty, isThresholdReached, itemAccessed, itemAdded, itemRefreshed, itemRemoved, keys, loadValue, notifyRefresh, put, put, remove, remove, remove, removeAll, trimExpiredEntries, values, waitRefreshclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitadd, add, addCacheListener, clear, clearStats, contains, destroy, elements, get, getAll, getEntryCount, getIndex, getStatByName, init, init, isEmpty, keys, notifyRefresh, put, put, remove, remove, removeAll, trimExpiredEntries, values, waitRefreshpublic UnboundedEJBObjectCache(String name)
public UnboundedEJBObjectCache(String name, long timeout)
public void init(int maxEntries,
int numberOfVictimsToSelect,
long timeout,
float loadFactor,
Properties props)
init in interface EJBObjectCachepublic Object get(Object key, boolean incrementRefCount)
get in interface EJBObjectCachepublic Object put(Object key, Object value, boolean linkWithLru)
put in interface EJBObjectCachepublic Object remove(Object key, boolean decrementRefCount)
remove in interface EJBObjectCachepublic void setEJBObjectCacheListener(EJBObjectCacheListener listener)
setEJBObjectCacheListener in interface EJBObjectCacheprotected void trimItem(com.sun.appserv.util.cache.BaseCache.CacheItem item)
trimItem in class com.sun.appserv.util.cache.BaseCachepublic Map getStats()
getStats in interface com.sun.appserv.util.cache.CachegetStats in class com.sun.appserv.util.cache.BaseCacheCopyright © 2013. All Rights Reserved.