Class CacheStatistics
- java.lang.Object
-
- com.atlassian.confluence.impl.vcache.metrics.CacheStatistics
-
- All Implemented Interfaces:
Statistics
public class CacheStatistics extends Object implements Statistics
Represents instrumentation data for caches.- Since:
- 5.10
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CacheStatistics.CacheStatisticsBuilder
-
Field Summary
Fields Modifier and Type Field Description static String
CACHE_LAAS_ID
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getLoggingKey()
String
getName()
Object
getStats()
Map<String,Object>
getStatsMap()
List<String>
getTags()
long
getTime()
long
hits()
double
loadTime()
long
misses()
long
putTime()
String
type()
-
-
-
Field Detail
-
CACHE_LAAS_ID
public static final String CACHE_LAAS_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getName
in interfaceStatistics
-
getLoggingKey
public String getLoggingKey()
- Specified by:
getLoggingKey
in interfaceStatistics
-
getTags
public List<String> getTags()
- Specified by:
getTags
in interfaceStatistics
-
getStats
public Object getStats()
- Specified by:
getStats
in interfaceStatistics
-
type
public String type()
- Returns:
- type of the cache.
-
hits
public long hits()
- Returns:
- number of cache hits
-
misses
public long misses()
- Returns:
- number of cache misises
-
loadTime
public double loadTime()
- Returns:
- mean time spent on calls to loaders / suppliers that provides value in case of miss. In nanoseconds.
-
getTime
public long getTime()
- Returns:
- mean time spent on cache get request. In nanoseconds.
-
putTime
public long putTime()
- Returns:
- mean time spent on cache put request. In nanoseconds.
-
-