Class LruEJBCache
- java.lang.Object
-
- com.sun.appserv.util.cache.BaseCache
-
- com.sun.appserv.util.cache.LruCache
-
- com.sun.ejb.containers.util.cache.LruEJBCache
-
- All Implemented Interfaces:
Cache
- Direct Known Subclasses:
FIFOEJBObjectCache
,LruSessionCache
public class LruEJBCache extends LruCache
LRUCache in-memory bounded cache with an LRU list
-
-
Nested Class Summary
-
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 Modifier and Type Field Description protected static Logger
_logger
protected String
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 LruEJBCache()
default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected BaseCache.CacheItem
itemAdded(BaseCache.CacheItem item)
/** this item is just added to the cachevoid
setCacheName(String name)
protected BaseCache.CacheItem
trimLru(long currentTime)
trim one item from the LRU list-
Methods inherited from class com.sun.appserv.util.cache.LruCache
createItem, getStatByName, getStats, init, itemAccessed, itemRefreshed, itemRemoved, setTimeout, trimExpiredEntries
-
Methods inherited from class com.sun.appserv.util.cache.BaseCache
_put, _remove, _removeItem, add, add, addCacheListener, clear, clearStats, contains, decrementEntryCount, destroy, elements, eq, get, get, getAll, getEntryCount, getIndex, getIndex, handleOverflow, hash, incrementAddCount, incrementEntryCount, incrementHitCount, incrementMissCount, incrementOverflowCount, incrementRefreshCount, incrementRemovalCount, init, init, isEmpty, isThresholdReached, keys, loadValue, notifyRefresh, put, put, remove, remove, remove, removeAll, trimItem, values, waitRefresh
-
-
-
-
Method Detail
-
trimLru
protected BaseCache.CacheItem trimLru(long currentTime)
Description copied from class:LruCache
trim one item from the LRU list
-
itemAdded
protected BaseCache.CacheItem itemAdded(BaseCache.CacheItem item)
Description copied from class:LruCache
/** this item is just added to the cache
-
setCacheName
public void setCacheName(String name)
-
-