public class LruEJBCache extends LruCache
LruCache.LruCacheItem
BaseCache.CacheItem
Modifier and Type | Field and Description |
---|---|
protected static Logger |
_logger |
protected String |
cacheName |
defaultMaxEntries, head, isUnbounded, listSize, NO_TIMEOUT, tail, timeout, trimCount
bucketLocks, buckets, entryCount, hitCount, listeners, maxBuckets, maxEntries, missCount, refreshFlags, removalCount, threshold
Constructor and Description |
---|
LruEJBCache()
default constructor
|
Modifier and Type | Method and Description |
---|---|
protected BaseCache.CacheItem |
itemAdded(BaseCache.CacheItem item)
/**
this item is just added to the cache
|
void |
setCacheName(String name) |
protected BaseCache.CacheItem |
trimLru(long currentTime)
trim one item from the LRU list
|
createItem, getStatByName, getStats, init, itemAccessed, itemRefreshed, itemRemoved, setTimeout, trimExpiredEntries
_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
protected BaseCache.CacheItem trimLru(long currentTime)
LruCache
protected BaseCache.CacheItem itemAdded(BaseCache.CacheItem item)
LruCache
public void setCacheName(String name)
Copyright © 2018. All rights reserved.