Class CacheStatistics
java.lang.Object
com.atlassian.jira.instrumentation.CacheStatistics
- All Implemented Interfaces:
Statistics,Serializable
@ParametersAreNonnullByDefault
public final class CacheStatistics
extends Object
implements Statistics
Represents instrumentation data for caches.
- Since:
- v7.1
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
CACHE_LAAS_ID
- See Also:
-
-
Constructor Details
-
CacheStatistics
-
-
Method Details
-
getName
- Specified by:
getNamein interfaceStatistics
-
getLoggingKey
- Specified by:
getLoggingKeyin interfaceStatistics
-
getTags
- Specified by:
getTagsin interfaceStatistics
-
getStats
- Specified by:
getStatsin interfaceStatistics
-
getStatsMap
-
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.
-