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:
com.sun.appserv.util.cache.Cache
Direct Known Subclasses:
LruSessionCache

public class LruEJBCache extends com.sun.appserv.util.cache.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

    com.sun.appserv.util.cache.LruCache.LruCacheItem

    Nested classes/interfaces inherited from class com.sun.appserv.util.cache.BaseCache

    com.sun.appserv.util.cache.BaseCache.CacheItem
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected static final Logger
     
    protected String
     

    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
    default constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    protected com.sun.appserv.util.cache.BaseCache.CacheItem
    itemAdded(com.sun.appserv.util.cache.BaseCache.CacheItem item)
     
    void
     
    protected com.sun.appserv.util.cache.BaseCache.CacheItem
    trimLru(long currentTime)
     

    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • _logger

      protected static final Logger _logger
    • cacheName

      protected String cacheName
  • Constructor Details

    • LruEJBCache

      public LruEJBCache()
      default constructor
  • Method Details

    • trimLru

      protected com.sun.appserv.util.cache.BaseCache.CacheItem trimLru(long currentTime)
      Overrides:
      trimLru in class com.sun.appserv.util.cache.LruCache
    • itemAdded

      protected com.sun.appserv.util.cache.BaseCache.CacheItem itemAdded(com.sun.appserv.util.cache.BaseCache.CacheItem item)
      Overrides:
      itemAdded in class com.sun.appserv.util.cache.LruCache
    • setCacheName

      public void setCacheName(String name)