Class CacheStatsCacheManager

java.lang.Object
com.atlassian.jira.cache.stats.CacheStatsCacheManager
All Implemented Interfaces:
com.atlassian.cache.CacheFactory, com.atlassian.cache.CacheManager

public class CacheStatsCacheManager extends Object implements com.atlassian.cache.CacheManager
Wraps caches with stats logs.
Since:
9.6.0
  • Constructor Details

    • CacheStatsCacheManager

      public CacheStatsCacheManager(com.atlassian.cache.CacheManager delegate, CacheStats stats)
  • Method Details

    • getCaches

      @Nonnull public Collection<com.atlassian.cache.Cache<?,?>> getCaches()
      Specified by:
      getCaches in interface com.atlassian.cache.CacheManager
    • getManagedCaches

      @Nonnull public Collection<com.atlassian.cache.ManagedCache> getManagedCaches()
      Specified by:
      getManagedCaches in interface com.atlassian.cache.CacheManager
    • flushCaches

      public void flushCaches()
      Specified by:
      flushCaches in interface com.atlassian.cache.CacheManager
    • getManagedCache

      @Nullable public com.atlassian.cache.ManagedCache getManagedCache(@Nonnull String s)
      Specified by:
      getManagedCache in interface com.atlassian.cache.CacheManager
    • shutdown

      public void shutdown()
      Specified by:
      shutdown in interface com.atlassian.cache.CacheManager
    • getCachedReference

      @Nonnull public <V> com.atlassian.cache.CachedReference<V> getCachedReference(@Nonnull String name, @Nonnull com.atlassian.cache.Supplier<V> supplier)
      Specified by:
      getCachedReference in interface com.atlassian.cache.CacheFactory
    • getCachedReference

      @Nonnull public <V> com.atlassian.cache.CachedReference<V> getCachedReference(@Nonnull String name, @Nonnull com.atlassian.cache.Supplier<V> supplier, @Nonnull com.atlassian.cache.CacheSettings cacheSettings)
      Specified by:
      getCachedReference in interface com.atlassian.cache.CacheFactory
    • getCachedReference

      @Nonnull public <V> com.atlassian.cache.CachedReference<V> getCachedReference(@Nonnull Class<?> aClass, @Nonnull String name, @Nonnull com.atlassian.cache.Supplier<V> supplier)
      Specified by:
      getCachedReference in interface com.atlassian.cache.CacheFactory
    • getCachedReference

      @Nonnull public <V> com.atlassian.cache.CachedReference<V> getCachedReference(@Nonnull Class<?> aClass, @Nonnull String name, @Nonnull com.atlassian.cache.Supplier<V> supplier, @Nonnull com.atlassian.cache.CacheSettings cacheSettings)
      Specified by:
      getCachedReference in interface com.atlassian.cache.CacheFactory
    • getCache

      @Nonnull public <K, V> com.atlassian.cache.Cache<K,V> getCache(@Nonnull String s)
      Specified by:
      getCache in interface com.atlassian.cache.CacheFactory
    • getCache

      @Nonnull public <K, V> com.atlassian.cache.Cache<K,V> getCache(@Nonnull Class<?> aClass, @Nonnull String s)
      Specified by:
      getCache in interface com.atlassian.cache.CacheFactory
    • getCache

      @Nonnull public <K, V> com.atlassian.cache.Cache<K,V> getCache(@Nonnull String s, @Nullable com.atlassian.cache.CacheLoader<K,V> cacheLoader)
      Specified by:
      getCache in interface com.atlassian.cache.CacheFactory
    • getCache

      @Nonnull public <K, V> com.atlassian.cache.Cache<K,V> getCache(@Nonnull String s, @Nullable com.atlassian.cache.CacheLoader<K,V> cacheLoader, @Nonnull com.atlassian.cache.CacheSettings cacheSettings)
      Specified by:
      getCache in interface com.atlassian.cache.CacheFactory
    • getCache

      @Nonnull public <K, V> com.atlassian.cache.Cache<K,V> getCache(@Nonnull String s, @Nonnull Class<K> aClass, @Nonnull Class<V> aClass1)
      Specified by:
      getCache in interface com.atlassian.cache.CacheFactory
    • getDelegate

      public com.atlassian.cache.CacheManager getDelegate()