public class PeekableTouchableCaffeineMap<K,V> extends AbstractDelegatingConcurrentMap<K,InternalCacheEntry<K,V>> implements PeekableTouchableMap<K,V>
Constructor and Description |
---|
PeekableTouchableCaffeineMap(com.github.benmanes.caffeine.cache.Cache<K,InternalCacheEntry<K,V>> cache) |
Modifier and Type | Method and Description |
---|---|
protected ConcurrentMap<K,InternalCacheEntry<K,V>> |
delegate() |
InternalCacheEntry<K,V> |
peek(Object key)
Peaks at a value for the given key.
|
boolean |
touchKey(Object key,
long currentTimeMillis)
Touches the entry for the given key in this map.
|
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public PeekableTouchableCaffeineMap(com.github.benmanes.caffeine.cache.Cache<K,InternalCacheEntry<K,V>> cache)
protected ConcurrentMap<K,InternalCacheEntry<K,V>> delegate()
delegate
in class AbstractDelegatingConcurrentMap<K,InternalCacheEntry<K,V>>
public InternalCacheEntry<K,V> peek(Object key)
PeekableTouchableMap
peek
in interface PeekableTouchableMap<K,V>
key
- The key to find the value forpublic boolean touchKey(Object key, long currentTimeMillis)
PeekableTouchableMap
touchKey
in interface PeekableTouchableMap<K,V>
key
- key to touchcurrentTimeMillis
- the recency timestamp to setCopyright © 2021 JBoss by Red Hat. All rights reserved.