Class UnboundedEJBObjectCache
java.lang.Object
com.sun.appserv.util.cache.BaseCache
org.glassfish.persistence.ejb.entitybean.container.cache.UnboundedEJBObjectCache
- All Implemented Interfaces:
com.sun.appserv.util.cache.Cache,EJBObjectCache
public class UnboundedEJBObjectCache
extends com.sun.appserv.util.cache.BaseCache
implements EJBObjectCache
An EJB(Local)Object cache that does not impose any limit on the
number of entries
- Author:
- Mahesh Kannan
-
Nested Class Summary
Nested classes/interfaces inherited from class com.sun.appserv.util.cache.BaseCache
com.sun.appserv.util.cache.BaseCache.CacheItem -
Field Summary
Fields inherited from class com.sun.appserv.util.cache.BaseCache
bucketLocks, buckets, entryCount, hitCount, listeners, maxBuckets, maxEntries, missCount, refreshFlags, removalCount, threshold -
Constructor Summary
ConstructorsConstructorDescriptiondefault constructorUnboundedEJBObjectCache(String name, long timeout) constructor with specified timeout -
Method Summary
Modifier and TypeMethodDescriptiongetStats()voidinit(int maxEntries, int numberOfVictimsToSelect, long timeout, float loadFactor, Properties props) voidprotected voidtrimItem(com.sun.appserv.util.cache.BaseCache.CacheItem item) Methods inherited from class com.sun.appserv.util.cache.BaseCache
_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, waitRefreshMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.sun.appserv.util.cache.Cache
add, add, addCacheListener, clear, clearStats, contains, destroy, elements, get, getAll, getEntryCount, getIndex, getStatByName, init, init, isEmpty, keys, notifyRefresh, put, put, remove, remove, removeAll, trimExpiredEntries, values, waitRefresh
-
Constructor Details
-
UnboundedEJBObjectCache
default constructor -
UnboundedEJBObjectCache
constructor with specified timeout
-
-
Method Details
-
init
public void init(int maxEntries, int numberOfVictimsToSelect, long timeout, float loadFactor, Properties props) - Specified by:
initin interfaceEJBObjectCache
-
get
- Specified by:
getin interfaceEJBObjectCache
-
put
- Specified by:
putin interfaceEJBObjectCache
-
remove
- Specified by:
removein interfaceEJBObjectCache
-
setEJBObjectCacheListener
- Specified by:
setEJBObjectCacheListenerin interfaceEJBObjectCache
-
trimItem
protected void trimItem(com.sun.appserv.util.cache.BaseCache.CacheItem item) - Overrides:
trimItemin classcom.sun.appserv.util.cache.BaseCache
-
getStats
- Specified by:
getStatsin interfacecom.sun.appserv.util.cache.Cache- Overrides:
getStatsin classcom.sun.appserv.util.cache.BaseCache
-