Package org.infinispan.container.impl
Interface TouchableMap
-
- All Known Subinterfaces:
PeekableTouchableMap<K,V>
- All Known Implementing Classes:
OffHeapConcurrentMap
,PeekableTouchableContainerMap
public interface TouchableMap
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
touchKey(Object key, long currentTimeMillis)
Touches the entry for the given key in this map.
-
-
-
Method Detail
-
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 touchcurrentTimeMillis
- the recency timestamp to set- Returns:
- whether the entry was touched or not
-
-