Class NRUSessionCache
java.lang.Object
com.sun.appserv.util.cache.BaseCache
com.sun.appserv.util.cache.LruCache
com.sun.ejb.containers.util.cache.LruEJBCache
com.sun.ejb.containers.util.cache.LruSessionCache
com.sun.ejb.containers.util.cache.NRUSessionCache
- All Implemented Interfaces:
com.sun.appserv.util.cache.Cache,EjbCacheStatsProviderDelegate,StatsProvider
-
Nested Class Summary
Nested classes/interfaces inherited from class com.sun.ejb.containers.util.cache.LruSessionCache
LruSessionCache.LruSessionCacheItemNested classes/interfaces inherited from class com.sun.appserv.util.cache.LruCache
com.sun.appserv.util.cache.LruCache.LruCacheItemNested classes/interfaces inherited from class com.sun.appserv.util.cache.BaseCache
com.sun.appserv.util.cache.BaseCache.CacheItem -
Field Summary
FieldsFields inherited from class com.sun.ejb.containers.util.cache.LruSessionCache
backingStore, cacheIdleTimeoutInSeconds, configData, confMaxCacheSize, container, loadCountLock, loadFromBackupCount, removalTimeoutInSeconds, removeIfIdleFields inherited from class com.sun.ejb.containers.util.cache.LruEJBCache
_logger, cacheNameFields inherited from class com.sun.appserv.util.cache.LruCache
defaultMaxEntries, head, isUnbounded, listSize, NO_TIMEOUT, tail, timeout, trimCountFields inherited from class com.sun.appserv.util.cache.BaseCache
bucketLocks, buckets, entryCount, hitCount, listeners, maxBuckets, maxEntries, missCount, refreshFlags, removalCount, threshold -
Constructor Summary
ConstructorsConstructorDescriptionNRUSessionCache(String cacheName, SFSBContainerCallback container, int cacheIdleTime, int removalTime) -
Method Summary
Modifier and TypeMethodDescriptionvoidinit(int maxEntries, float loadFactor, Properties props) protected voiditemAccessed(com.sun.appserv.util.cache.BaseCache.CacheItem item) protected com.sun.appserv.util.cache.BaseCache.CacheItemitemAdded(com.sun.appserv.util.cache.BaseCache.CacheItem item) protected voiditemRefreshed(com.sun.appserv.util.cache.BaseCache.CacheItem item, int oldSize) protected voiditemRemoved(com.sun.appserv.util.cache.BaseCache.CacheItem item) voidtrimTimedoutItems(int maxCount) trim the timedOut entries from the cache.Methods inherited from class com.sun.ejb.containers.util.cache.LruSessionCache
appendStats, createItem, destroy, eligibleForRemovalFromCache, getCacheHits, getCacheMisses, getLoadFromBackupCount, getMaxCacheSize, getNumBeansInCache, getNumExpiredSessionsRemoved, getNumPassivationErrors, getNumPassivations, getNumPassivationSuccess, getNumVictimsAccessed, incrementLoadFromBackupCount, lookupEJB, passivateEJB, remove, remove, setBackingStore, setConfigData, setMaxCacheSize, setShutdownState, setStatefulSessionStoreMonitor, setUndeployedState, shutdown, trimItem, trimUnSortedTimedoutItems, valuesMethods inherited from class com.sun.ejb.containers.util.cache.LruEJBCache
setCacheName, trimLruMethods inherited from class com.sun.appserv.util.cache.LruCache
getStatByName, getStats, init, setTimeout, trimExpiredEntriesMethods inherited from class com.sun.appserv.util.cache.BaseCache
_put, _remove, _removeItem, add, add, addCacheListener, clear, clearStats, contains, decrementEntryCount, elements, eq, get, get, getAll, getEntryCount, getIndex, getIndex, handleOverflow, hash, incrementAddCount, incrementEntryCount, incrementHitCount, incrementMissCount, incrementOverflowCount, incrementRefreshCount, incrementRemovalCount, init, isEmpty, isThresholdReached, keys, loadValue, notifyRefresh, put, put, remove, remove, removeAll, waitRefresh
-
Field Details
-
doOrdering
protected boolean doOrdering -
orderingThreshold
protected int orderingThreshold
-
-
Constructor Details
-
NRUSessionCache
public NRUSessionCache(String cacheName, SFSBContainerCallback container, int cacheIdleTime, int removalTime)
-
-
Method Details
-
init
- Specified by:
initin interfacecom.sun.appserv.util.cache.Cache- Overrides:
initin classcom.sun.appserv.util.cache.BaseCache
-
itemAdded
protected com.sun.appserv.util.cache.BaseCache.CacheItem itemAdded(com.sun.appserv.util.cache.BaseCache.CacheItem item) - Overrides:
itemAddedin classLruEJBCache
-
itemAccessed
protected void itemAccessed(com.sun.appserv.util.cache.BaseCache.CacheItem item) - Overrides:
itemAccessedin classLruSessionCache
-
itemRefreshed
protected void itemRefreshed(com.sun.appserv.util.cache.BaseCache.CacheItem item, int oldSize) - Overrides:
itemRefreshedin classcom.sun.appserv.util.cache.LruCache
-
itemRemoved
protected void itemRemoved(com.sun.appserv.util.cache.BaseCache.CacheItem item) - Overrides:
itemRemovedin classcom.sun.appserv.util.cache.LruCache
-
trimTimedoutItems
public void trimTimedoutItems(int maxCount) Description copied from class:LruSessionCachetrim the timedOut entries from the cache. This call is to be scheduled by a thread managed by the container. In this case a sorted LRU list exists based on access time and this list is scanned- Overrides:
trimTimedoutItemsin classLruSessionCache
-