public class UnboundedEJBObjectCache extends BaseCache implements EJBObjectCache
BaseCache.CacheItembucketLocks, buckets, entryCount, hitCount, listeners, maxBuckets, maxEntries, missCount, refreshFlags, removalCount, threshold| 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()
get the stats snapshot
|
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(BaseCache.CacheItem item)
trim the item from the cache and notify listeners
|
_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(BaseCache.CacheItem item)
BaseCacheCopyright © 2019. All rights reserved.