Interface PeekableTouchableMap<K,​V>

    • Method Detail

      • peek

        InternalCacheEntry<K,​V> peek​(Object key)
        Peaks at a value for the given key. Note that this does not update any expiration or eviction information when this is performed on the map, unlike the get method.
        Parameters:
        key - The key to find the value for
        Returns:
        The value mapping to this key
      • touchKey

        boolean touchKey​(Object key,
                         long currentTimeMillis)
        Touches the entry for the given key in this map. This method will update any recency timestamps for both expiration or eviction as needed.
        Parameters:
        key - key to touch
        currentTimeMillis - the recency timestamp to set
        Returns:
        whether the entry was touched or not
      • touchAll

        void touchAll​(long currentTimeMillis)
        Touches all entries in the map setting the recency timestamps for both expiration eviction appropriately.
        Parameters:
        currentTimeMillis - the recency timestamp to set