Class UnBoundedSessionCache
- 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.UnBoundedSessionCache
-
- All Implemented Interfaces:
Cache
,EjbCacheStatsProviderDelegate
,StatsProvider
public class UnBoundedSessionCache extends LruSessionCache
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.sun.ejb.containers.util.cache.LruSessionCache
LruSessionCache.LruSessionCacheItem
-
Nested classes/interfaces inherited from class com.sun.appserv.util.cache.LruCache
LruCache.LruCacheItem
-
Nested classes/interfaces inherited from class com.sun.appserv.util.cache.BaseCache
BaseCache.CacheItem
-
-
Field Summary
-
Fields inherited from class com.sun.ejb.containers.util.cache.LruSessionCache
backingStore, cacheIdleTimeoutInSeconds, configData, confMaxCacheSize, container, loadCountLock, loadFromBackupCount, removalTimeoutInSeconds, removeIfIdle
-
Fields inherited from class com.sun.ejb.containers.util.cache.LruEJBCache
_logger, cacheName
-
Fields inherited from class com.sun.appserv.util.cache.LruCache
defaultMaxEntries, head, isUnbounded, listSize, NO_TIMEOUT, tail, timeout, trimCount
-
Fields inherited from class com.sun.appserv.util.cache.BaseCache
bucketLocks, buckets, entryCount, hitCount, listeners, maxBuckets, maxEntries, missCount, refreshFlags, removalCount, threshold
-
-
Constructor Summary
Constructors Constructor Description UnBoundedSessionCache(String cacheName, StatefulSessionContainer container, int cacheIdleTime, int removalTime)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
isThresholdReached()
has cache reached its thresholdprotected BaseCache.CacheItem
trimLru()
-
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, itemAccessed, lookupEJB, passivateEJB, remove, remove, setBackingStore, setConfigData, setMaxCacheSize, setShutdownState, setStatefulSessionStoreMonitor, setUndeployedState, shutdown, trimItem, trimTimedoutItems, trimUnSortedTimedoutItems, values
-
Methods inherited from class com.sun.ejb.containers.util.cache.LruEJBCache
itemAdded, setCacheName, trimLru
-
Methods inherited from class com.sun.appserv.util.cache.LruCache
getStatByName, getStats, init, itemRefreshed, itemRemoved, setTimeout, trimExpiredEntries
-
Methods 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, init, isEmpty, keys, loadValue, notifyRefresh, put, put, remove, remove, removeAll, waitRefresh
-
-
-
-
Constructor Detail
-
UnBoundedSessionCache
public UnBoundedSessionCache(String cacheName, StatefulSessionContainer container, int cacheIdleTime, int removalTime)
-
-
Method Detail
-
isThresholdReached
protected boolean isThresholdReached()
Description copied from class:BaseCache
has cache reached its threshold- Overrides:
isThresholdReached
in classBaseCache
- Returns:
- true when the cache reached its threshold
-
trimLru
protected BaseCache.CacheItem trimLru()
-
-