public static class ConcurrentMapCacheMetrics.MonitoredConcurrentMapCache
extends org.springframework.cache.concurrent.ConcurrentMapCache
ConcurrentMapCache
wrapper that collects metrics on its use.Modifier and Type | Method and Description |
---|---|
void |
clear() |
void |
evict(java.lang.Object key) |
org.springframework.cache.Cache.ValueWrapper |
get(java.lang.Object key) |
<T> T |
get(java.lang.Object key,
java.util.concurrent.Callable<T> valueLoader) |
<T> T |
get(java.lang.Object key,
java.lang.Class<T> type) |
void |
put(java.lang.Object key,
java.lang.Object value) |
org.springframework.cache.Cache.ValueWrapper |
putIfAbsent(java.lang.Object key,
java.lang.Object value) |
fromStoreValue, getName, getNativeCache, isStoreByValue, lookup, toStoreValue
public org.springframework.cache.Cache.ValueWrapper get(java.lang.Object key)
get
in interface org.springframework.cache.Cache
get
in class org.springframework.cache.support.AbstractValueAdaptingCache
public <T> T get(java.lang.Object key, java.lang.Class<T> type)
get
in interface org.springframework.cache.Cache
get
in class org.springframework.cache.support.AbstractValueAdaptingCache
@Nullable public <T> T get(java.lang.Object key, java.util.concurrent.Callable<T> valueLoader)
get
in interface org.springframework.cache.Cache
get
in class org.springframework.cache.concurrent.ConcurrentMapCache
public void put(java.lang.Object key, java.lang.Object value)
put
in interface org.springframework.cache.Cache
put
in class org.springframework.cache.concurrent.ConcurrentMapCache
public org.springframework.cache.Cache.ValueWrapper putIfAbsent(java.lang.Object key, java.lang.Object value)
putIfAbsent
in interface org.springframework.cache.Cache
putIfAbsent
in class org.springframework.cache.concurrent.ConcurrentMapCache
public void evict(java.lang.Object key)
evict
in interface org.springframework.cache.Cache
evict
in class org.springframework.cache.concurrent.ConcurrentMapCache
public void clear()
clear
in interface org.springframework.cache.Cache
clear
in class org.springframework.cache.concurrent.ConcurrentMapCache