Class BaseCache.CacheItem

    • Constructor Detail

      • CacheItem

        protected CacheItem​(int hashCode,
                            Object key,
                            Object value,
                            int size)
    • Method Detail

      • getHashCode

        public int getHashCode()
        get the item's hashCode
      • getKey

        public Object getKey()
        get the item's key
      • getValue

        public Object getValue()
        get the item's value
      • getSize

        public int getSize()
        Returns:
        size of the entry in bytes a value of -1 indicates unknown size
      • refreshValue

        protected Object refreshValue​(Object value,
                                      int newSize)
        refresh the item's value
        Parameters:
        value - value to be updated
        newSize - of the field