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.CacheManager
com.atlassian.cache.ManagedCache
Collection<com.atlassian.cache.ManagedCache>
void
shutdown()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.atlassian.cache.CacheFactory
getReadThroughCache, getReadThroughCache
-
Constructor Details
-
CacheStatsCacheManager
-
-
Method Details
-
getCaches
- Specified by:
getCaches
in interfacecom.atlassian.cache.CacheManager
-
getManagedCaches
- Specified by:
getManagedCaches
in interfacecom.atlassian.cache.CacheManager
-
flushCaches
public void flushCaches()- Specified by:
flushCaches
in interfacecom.atlassian.cache.CacheManager
-
getManagedCache
- Specified by:
getManagedCache
in interfacecom.atlassian.cache.CacheManager
-
shutdown
public void shutdown()- Specified by:
shutdown
in 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:
getCachedReference
in 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:
getCachedReference
in 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:
getCachedReference
in 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:
getCachedReference
in interfacecom.atlassian.cache.CacheFactory
-
getCache
- Specified by:
getCache
in interfacecom.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 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:
getCache
in 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:
getCache
in 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:
getCache
in interfacecom.atlassian.cache.CacheFactory
-
getDelegate
public com.atlassian.cache.CacheManager getDelegate()
-