Interface TouchableMap


public interface TouchableMap
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    touchKey(Object key, long currentTimeMillis)
    Touches the entry for the given key in this map.
  • Method Details

    • 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