public interface CacheStatistics
CacheStatistics
instances have a
very short life as it represents the statistics of a cache at one particular point in
time.Modifier and Type | Method and Description |
---|---|
Double |
getHitRatio()
Return the ratio of cache requests which were hits as a value between 0 and 1 where
0 means that the hit ratio is 0% and 1 means it is 100%.
|
Double |
getMissRatio()
Return the ratio of cache requests which were misses as value between 0 and 1 where
0 means that the miss ratio is 0% and 1 means it is 100%.
|
Long |
getSize()
Return the size of the cache or
null if that information is not available. |
Collection<Metric<?>> |
toMetrics(String prefix)
Generate the relevant
Metric instances based on the specified prefix. |
Collection<Metric<?>> toMetrics(String prefix)
Metric
instances based on the specified prefix.prefix
- the metrics prefix (ends with '.')Long getSize()
null
if that information is not available.null
Double getHitRatio()
This may also return null
if the cache-specifics statistics does not
provide the necessary information
null
Double getMissRatio()
This may also return null
if the cache-specifics statistics does not
provide the necessary information
null
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.