Package com.atlassian.confluence.cache
Interface CacheStatisticsManager
- All Known Implementing Classes:
EhCacheStatisticsManager
,HazelcastStatisticsManager
public interface CacheStatisticsManager
Provides information on how effective each managed cache is.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault Predicate<com.atlassian.cache.CacheStatisticsKey>
getCacheStatisticFilter
(String cacheName) For a given cache, returns a predicate that can be used to filter whichCacheStatisticsKey
s are appropriate for that cache.Returns the set of optional capabilities supported by this implementationDeprecated.getLocalCacheStatistics
(String cacheName) Deprecated.since 7.5 UseManagedCache.getStatistics()
-
Field Details
-
CACHE_NAME_PREFIX
- See Also:
-
-
Method Details
-
getLocalCacheStatistics
Deprecated.since 7.5 UseManagedCache.getStatistics()
Retrieve all the cache statistics for locally held caches. In a clustered setting, distributed caches will report only on the locally held portion of the cache.- Returns:
- list of cache statistics sorted by their localised
CacheStatistics.getNiceName()
.
-
getLocalCacheStatistics
Deprecated.since 7.5 UseManagedCache.getStatistics()
Retrieve the cache statistics for one locally held cache. In a clustered setting, distributed caches will report only on the locally held portion of the cache.- Returns:
- list of cache statistics sorted by their localised
CacheStatistics.getNiceName()
.
-
getCapabilities
Set<CacheStatisticsCapability> getCapabilities()Returns the set of optional capabilities supported by this implementation- Since:
- 5.5
-
getCacheStatisticFilter
For a given cache, returns a predicate that can be used to filter whichCacheStatisticsKey
s are appropriate for that cache. For example, it may not be appropriate to measure the heap size for a given cache, soCacheStatisticsKey.HEAP_SIZE
will not pass the predicate.- Since:
- 7.5
-
ManagedCache.getStatistics()