public class NRUSessionCache extends LruSessionCache
LruSessionCache.LruSessionCacheItemLruCache.LruCacheItemBaseCache.CacheItem| Modifier and Type | Field and Description |
|---|---|
protected boolean |
doOrdering |
protected int |
orderingThreshold |
backingStore, cacheIdleTimeoutInSeconds, configData, confMaxCacheSize, container, loadCountLock, loadFromBackupCount, removalTimeoutInSeconds, removeIfIdle_logger, cacheNamedefaultMaxEntries, head, isUnbounded, listSize, NO_TIMEOUT, tail, timeout, trimCountbucketLocks, buckets, entryCount, hitCount, listeners, maxBuckets, maxEntries, missCount, refreshFlags, removalCount, threshold| Constructor and Description |
|---|
NRUSessionCache(String cacheName,
SFSBContainerCallback container,
int cacheIdleTime,
int removalTime) |
| Modifier and Type | Method and Description |
|---|---|
void |
init(int maxEntries,
float loadFactor,
Properties props)
initialize the cache
|
protected void |
itemAccessed(BaseCache.CacheItem item)
this item is accessed
|
protected BaseCache.CacheItem |
itemAdded(BaseCache.CacheItem item)
/**
this item is just added to the cache
|
protected void |
itemRefreshed(BaseCache.CacheItem item,
int oldSize)
item value has been refreshed
|
protected void |
itemRemoved(BaseCache.CacheItem item)
item value has been removed from the cache
|
void |
trimTimedoutItems(int maxCount)
trim the timedOut entries from the cache.
|
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, valuessetCacheName, trimLrugetStatByName, getStats, init, setTimeout, trimExpiredEntries_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, waitRefreshprotected boolean doOrdering
protected int orderingThreshold
public NRUSessionCache(String cacheName, SFSBContainerCallback container, int cacheIdleTime, int removalTime)
public void init(int maxEntries,
float loadFactor,
Properties props)
BaseCacheprotected BaseCache.CacheItem itemAdded(BaseCache.CacheItem item)
LruCacheitemAdded in class LruEJBCacheitem - CacheItem that was createdprotected void itemAccessed(BaseCache.CacheItem item)
LruCacheitemAccessed in class LruSessionCacheitem - CacheItem accessed
Cache bucket is already synchronized by the callerprotected void itemRefreshed(BaseCache.CacheItem item, int oldSize)
LruCacheitemRefreshed in class LruCacheitem - CacheItem that was refreshedoldSize - size of the previous value that was refreshed
Cache bucket is already synchronized by the callerprotected void itemRemoved(BaseCache.CacheItem item)
LruCacheitemRemoved in class LruCacheitem - CacheItem that was just removed
Cache bucket is already synchronized by the callerpublic void trimTimedoutItems(int maxCount)
LruSessionCachetrimTimedoutItems in class LruSessionCacheCopyright © 2017. All rights reserved.