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, valuesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic 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)
PeekableTouchableMappeek in interface PeekableTouchableMap<K,V>key - The key to find the value forpublic boolean touchKey(Object key, long currentTimeMillis)
PeekableTouchableMaptouchKey in interface PeekableTouchableMap<K,V>key - key to touchcurrentTimeMillis - the recency timestamp to setCopyright © 2022 JBoss by Red Hat. All rights reserved.