Class FIFOSessionCache

    • Constructor Detail

      • FIFOSessionCache

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

      • itemAccessed

        protected void itemAccessed​(BaseCache.CacheItem item)
        Description copied from class: LruCache
        this item is accessed
        Overrides:
        itemAccessed in class LruSessionCache
        Parameters:
        item - CacheItem accessed Cache bucket is already synchronized by the caller
      • itemRefreshed

        protected void itemRefreshed​(BaseCache.CacheItem item,
                                     int oldSize)
        Description copied from class: LruCache
        item value has been refreshed
        Overrides:
        itemRefreshed in class LruCache
        Parameters:
        item - CacheItem that was refreshed
        oldSize - size of the previous value that was refreshed Cache bucket is already synchronized by the caller
      • 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