Class LruEJBCache

    • Field Detail

      • _logger

        protected static final Logger _logger
      • cacheName

        protected String cacheName
    • Constructor Detail

      • LruEJBCache

        public LruEJBCache()
        default constructor
    • Method Detail

      • trimLru

        protected BaseCache.CacheItem trimLru​(long currentTime)
        Description copied from class: LruCache
        trim one item from the LRU list
        Overrides:
        trimLru in class LruCache
        Parameters:
        currentTime - of this operation
        Returns:
        the item trimmed from cache list synchronization is handled by the caller
      • itemAdded

        protected BaseCache.CacheItem itemAdded​(BaseCache.CacheItem item)
        Description copied from class: LruCache
        /** this item is just added to the cache
        Overrides:
        itemAdded in class LruCache
        Parameters:
        item - CacheItem that was created
        Returns:
        a overflow item; may be null this function checks if adding the new item results in a overflow; if so, it returns the item to be removed. Cache bucket is already synchronized by the caller
      • setCacheName

        public void setCacheName​(String name)