Package io.micrometer.spring.cache
Class ConcurrentMapCacheMetrics.MonitoredConcurrentMapCache
- java.lang.Object
-
- org.springframework.cache.support.AbstractValueAdaptingCache
-
- org.springframework.cache.concurrent.ConcurrentMapCache
-
- io.micrometer.spring.cache.ConcurrentMapCacheMetrics.MonitoredConcurrentMapCache
-
- All Implemented Interfaces:
org.springframework.cache.Cache
- Enclosing class:
- ConcurrentMapCacheMetrics
public static class ConcurrentMapCacheMetrics.MonitoredConcurrentMapCache extends org.springframework.cache.concurrent.ConcurrentMapCacheAConcurrentMapCachewrapper that collects metrics on its use.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()voidevict(java.lang.Object key)org.springframework.cache.Cache.ValueWrapperget(java.lang.Object key)<T> Tget(java.lang.Object key, java.lang.Class<T> type)<T> Tget(java.lang.Object key, java.util.concurrent.Callable<T> valueLoader)voidput(java.lang.Object key, java.lang.Object value)org.springframework.cache.Cache.ValueWrapperputIfAbsent(java.lang.Object key, java.lang.Object value)-
Methods inherited from class org.springframework.cache.concurrent.ConcurrentMapCache
fromStoreValue, getName, getNativeCache, isStoreByValue, lookup, toStoreValue
-
-
-
-
Method Detail
-
get
public org.springframework.cache.Cache.ValueWrapper get(java.lang.Object key)
- Specified by:
getin interfaceorg.springframework.cache.Cache- Overrides:
getin classorg.springframework.cache.support.AbstractValueAdaptingCache
-
get
public <T> T get(java.lang.Object key, java.lang.Class<T> type)- Specified by:
getin interfaceorg.springframework.cache.Cache- Overrides:
getin classorg.springframework.cache.support.AbstractValueAdaptingCache
-
get
@Nullable public <T> T get(java.lang.Object key, java.util.concurrent.Callable<T> valueLoader)- Specified by:
getin interfaceorg.springframework.cache.Cache- Overrides:
getin classorg.springframework.cache.concurrent.ConcurrentMapCache
-
put
public void put(java.lang.Object key, java.lang.Object value)- Specified by:
putin interfaceorg.springframework.cache.Cache- Overrides:
putin classorg.springframework.cache.concurrent.ConcurrentMapCache
-
putIfAbsent
public org.springframework.cache.Cache.ValueWrapper putIfAbsent(java.lang.Object key, java.lang.Object value)- Specified by:
putIfAbsentin interfaceorg.springframework.cache.Cache- Overrides:
putIfAbsentin classorg.springframework.cache.concurrent.ConcurrentMapCache
-
evict
public void evict(java.lang.Object key)
- Specified by:
evictin interfaceorg.springframework.cache.Cache- Overrides:
evictin classorg.springframework.cache.concurrent.ConcurrentMapCache
-
clear
public void clear()
- Specified by:
clearin interfaceorg.springframework.cache.Cache- Overrides:
clearin classorg.springframework.cache.concurrent.ConcurrentMapCache
-
-