Package com.atlassian.confluence.cache
Interface CacheStatisticsManager
-
- All Known Implementing Classes:
EhCacheStatisticsManager,HazelcastStatisticsManager
public interface CacheStatisticsManagerProvides information on how effective each managed cache is.
-
-
Field Summary
Fields Modifier and Type Field Description static StringCACHE_NAME_PREFIX
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description default Predicate<com.atlassian.cache.CacheStatisticsKey>getCacheStatisticFilter(String cacheName)For a given cache, returns a predicate that can be used to filter whichCacheStatisticsKeys are appropriate for that cache.Set<CacheStatisticsCapability>getCapabilities()Returns the set of optional capabilities supported by this implementationList<CacheStatistics>getLocalCacheStatistics()Deprecated.since 7.5 UseManagedCache.getStatistics()CacheStatisticsgetLocalCacheStatistics(String cacheName)Deprecated.since 7.5 UseManagedCache.getStatistics()
-
-
-
Field Detail
-
CACHE_NAME_PREFIX
static final String CACHE_NAME_PREFIX
- See Also:
- Constant Field Values
-
-
Method Detail
-
getLocalCacheStatistics
@Deprecated List<CacheStatistics> 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 CacheStatistics getLocalCacheStatistics(String cacheName)
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
default Predicate<com.atlassian.cache.CacheStatisticsKey> getCacheStatisticFilter(String cacheName)
For a given cache, returns a predicate that can be used to filter whichCacheStatisticsKeys are appropriate for that cache. For example, it may not be appropriate to measure the heap size for a given cache, soCacheStatisticsKey.HEAP_SIZEwill not pass the predicate.- Since:
- 7.5
-
-