Class ConcurrentMapCacheMetrics.MonitoredConcurrentMapCache

  • All Implemented Interfaces:
    org.springframework.cache.Cache
    Enclosing class:
    ConcurrentMapCacheMetrics

    public static class ConcurrentMapCacheMetrics.MonitoredConcurrentMapCache
    extends org.springframework.cache.concurrent.ConcurrentMapCache
    A ConcurrentMapCache wrapper that collects metrics on its use.
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.springframework.cache.Cache

        org.springframework.cache.Cache.ValueRetrievalException, org.springframework.cache.Cache.ValueWrapper
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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.lang.Class<T> type)  
      <T> T get​(java.lang.Object key, java.util.concurrent.Callable<T> valueLoader)  
      void put​(java.lang.Object key, java.lang.Object value)  
      org.springframework.cache.Cache.ValueWrapper putIfAbsent​(java.lang.Object key, java.lang.Object value)  
      • Methods inherited from class org.springframework.cache.concurrent.ConcurrentMapCache

        fromStoreValue, getName, getNativeCache, isStoreByValue, lookup, toStoreValue
      • Methods inherited from class org.springframework.cache.support.AbstractValueAdaptingCache

        isAllowNullValues, toValueWrapper
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • get

        public org.springframework.cache.Cache.ValueWrapper get​(java.lang.Object key)
        Specified by:
        get in interface org.springframework.cache.Cache
        Overrides:
        get in class org.springframework.cache.support.AbstractValueAdaptingCache
      • get

        public <T> T get​(java.lang.Object key,
                         java.lang.Class<T> type)
        Specified by:
        get in interface org.springframework.cache.Cache
        Overrides:
        get in class org.springframework.cache.support.AbstractValueAdaptingCache
      • get

        @Nullable
        public <T> T get​(java.lang.Object key,
                         java.util.concurrent.Callable<T> valueLoader)
        Specified by:
        get in interface org.springframework.cache.Cache
        Overrides:
        get in class org.springframework.cache.concurrent.ConcurrentMapCache
      • put

        public void put​(java.lang.Object key,
                        java.lang.Object value)
        Specified by:
        put in interface org.springframework.cache.Cache
        Overrides:
        put in class org.springframework.cache.concurrent.ConcurrentMapCache
      • putIfAbsent

        public org.springframework.cache.Cache.ValueWrapper putIfAbsent​(java.lang.Object key,
                                                                        java.lang.Object value)
        Specified by:
        putIfAbsent in interface org.springframework.cache.Cache
        Overrides:
        putIfAbsent in class org.springframework.cache.concurrent.ConcurrentMapCache
      • evict

        public void evict​(java.lang.Object key)
        Specified by:
        evict in interface org.springframework.cache.Cache
        Overrides:
        evict in class org.springframework.cache.concurrent.ConcurrentMapCache
      • clear

        public void clear()
        Specified by:
        clear in interface org.springframework.cache.Cache
        Overrides:
        clear in class org.springframework.cache.concurrent.ConcurrentMapCache