com.sun.ejb.containers.util.cache
Class UnBoundedSessionCache

java.lang.Object
  extended by com.sun.ejb.containers.util.cache.BaseCache
      extended by com.sun.ejb.containers.util.cache.LruCache
          extended by com.sun.ejb.containers.util.cache.LruSessionCache
              extended by com.sun.ejb.containers.util.cache.UnBoundedSessionCache
All Implemented Interfaces:
Cache, EJBCacheStatsProvider, 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.ejb.containers.util.cache.LruCache
LruCache.LruCacheItem
 
Nested classes/interfaces inherited from class com.sun.ejb.containers.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, numActivated, passivationCount, passivationCountLock, removalTimeoutInSeconds, removeIfIdle
 
Fields inherited from class com.sun.ejb.containers.util.cache.LruCache
_logger, cacheName, head, listSize, NO_TIMEOUT, tail, timeout, trimCount
 
Fields inherited from class com.sun.ejb.containers.util.cache.BaseCache
_rb, addCount, addCountLk, bucketLocks, buckets, entryCount, entryCountLk, hitCount, hitCountLk, listeners, maxBuckets, missCount, missCountLk, overflowCount, overflowCountLk, refreshCount, refreshCountLk, refreshFlags, removalCount, removalCountLk, threshold
 
Constructor Summary
UnBoundedSessionCache(java.lang.String cacheName, StatefulSessionContainer container, int cacheIdleTime, int removalTime)
           
 
Method Summary
protected  boolean isThresholdReached()
          has cache reached its threshold
protected  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.LruCache
getStatByName, getStats, itemAdded, itemRefreshed, itemRemoved, setCacheName, trimExpiredEntries, trimLru
 
Methods inherited from class com.sun.ejb.containers.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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnBoundedSessionCache

public UnBoundedSessionCache(java.lang.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 class BaseCache
Returns:
true when the cache reached its threshold

trimLru

protected BaseCache.CacheItem trimLru()


Copyright © 2012 GlassFish Community. All Rights Reserved.