Package com.atlassian.jira.cache.stats
Class CacheStatsCacheManager
java.lang.Object
com.atlassian.jira.cache.stats.CacheStatsCacheManager
- All Implemented Interfaces:
com.atlassian.cache.CacheFactory,com.atlassian.cache.CacheManager
Wraps caches with stats logs.
- Since:
- 9.6.0
-
Constructor Summary
ConstructorsConstructorDescriptionCacheStatsCacheManager(com.atlassian.cache.CacheManager delegate, CacheStats stats) -
Method Summary
Modifier and TypeMethodDescriptionvoid<K,V> com.atlassian.cache.Cache<K, V> <K,V> com.atlassian.cache.Cache<K, V> <K,V> com.atlassian.cache.Cache<K, V> <K,V> com.atlassian.cache.Cache<K, V> getCache(String s, com.atlassian.cache.CacheLoader<K, V> cacheLoader, com.atlassian.cache.CacheSettings cacheSettings) <K,V> com.atlassian.cache.Cache<K, V> <V> com.atlassian.cache.CachedReference<V>getCachedReference(Class<?> aClass, String name, com.atlassian.cache.Supplier<V> supplier) <V> com.atlassian.cache.CachedReference<V>getCachedReference(Class<?> aClass, String name, com.atlassian.cache.Supplier<V> supplier, com.atlassian.cache.CacheSettings cacheSettings) <V> com.atlassian.cache.CachedReference<V>getCachedReference(String name, com.atlassian.cache.Supplier<V> supplier) <V> com.atlassian.cache.CachedReference<V>getCachedReference(String name, com.atlassian.cache.Supplier<V> supplier, com.atlassian.cache.CacheSettings cacheSettings) Collection<com.atlassian.cache.Cache<?,?>> com.atlassian.cache.CacheManagercom.atlassian.cache.ManagedCacheCollection<com.atlassian.cache.ManagedCache>voidshutdown()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.cache.CacheFactory
getReadThroughCache, getReadThroughCache
-
Constructor Details
-
CacheStatsCacheManager
-
-
Method Details
-
getCaches
- Specified by:
getCachesin interfacecom.atlassian.cache.CacheManager
-
getManagedCaches
- Specified by:
getManagedCachesin interfacecom.atlassian.cache.CacheManager
-
flushCaches
public void flushCaches()- Specified by:
flushCachesin interfacecom.atlassian.cache.CacheManager
-
getManagedCache
- Specified by:
getManagedCachein interfacecom.atlassian.cache.CacheManager
-
shutdown
public void shutdown()- Specified by:
shutdownin interfacecom.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:
getCachedReferencein interfacecom.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:
getCachedReferencein interfacecom.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:
getCachedReferencein interfacecom.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:
getCachedReferencein interfacecom.atlassian.cache.CacheFactory
-
getCache
- Specified by:
getCachein interfacecom.atlassian.cache.CacheFactory
-
getCache
@Nonnull public <K,V> com.atlassian.cache.Cache<K,V> getCache(@Nonnull Class<?> aClass, @Nonnull String s) - Specified by:
getCachein interfacecom.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:
getCachein interfacecom.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:
getCachein interfacecom.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:
getCachein interfacecom.atlassian.cache.CacheFactory
-
getDelegate
public com.atlassian.cache.CacheManager getDelegate()
-