Class NRUSessionCache

    • Field Detail

      • doOrdering

        protected boolean doOrdering
      • orderingThreshold

        protected int orderingThreshold
    • Constructor Detail

      • NRUSessionCache

        public NRUSessionCache​(String cacheName,
                               SFSBContainerCallback container,
                               int cacheIdleTime,
                               int removalTime)
    • Method Detail

      • init

        public void init​(int maxEntries,
                         float loadFactor,
                         Properties props)
        Specified by:
        init in interface com.sun.appserv.util.cache.Cache
        Overrides:
        init in class com.sun.appserv.util.cache.BaseCache
      • itemAdded

        protected com.sun.appserv.util.cache.BaseCache.CacheItem itemAdded​(com.sun.appserv.util.cache.BaseCache.CacheItem item)
        Overrides:
        itemAdded in class LruEJBCache
      • itemAccessed

        protected void itemAccessed​(com.sun.appserv.util.cache.BaseCache.CacheItem item)
        Overrides:
        itemAccessed in class LruSessionCache
      • itemRefreshed

        protected void itemRefreshed​(com.sun.appserv.util.cache.BaseCache.CacheItem item,
                                     int oldSize)
        Overrides:
        itemRefreshed in class com.sun.appserv.util.cache.LruCache
      • itemRemoved

        protected void itemRemoved​(com.sun.appserv.util.cache.BaseCache.CacheItem item)
        Overrides:
        itemRemoved in class com.sun.appserv.util.cache.LruCache
      • trimTimedoutItems

        public void trimTimedoutItems​(int maxCount)
        Description copied from class: LruSessionCache
        trim the timedOut entries from the cache. This call is to be scheduled by a thread managed by the container. In this case a sorted LRU list exists based on access time and this list is scanned
        Overrides:
        trimTimedoutItems in class LruSessionCache