public interface CacheStatsMXBean
CacheStats
.Modifier and Type | Method and Description |
---|---|
long |
getEvictionCount()
Returns the number of times an entry has been evicted.
|
long |
getHitCount()
Returns the number of times
com.google.common.cache.Cache lookup methods have returned a cached value. |
long |
getLoadExceptionCount()
Returns the number of times
com.google.common.cache.Cache lookup methods threw an exception while loading
a new value. |
long |
getLoadSuccessCount()
Returns the number of times
com.google.common.cache.Cache lookup methods have successfully loaded a new
value. |
long |
getMissCount()
Returns the number of times
com.google.common.cache.Cache lookup methods have returned an uncached (newly
loaded) value, or null. |
long |
getTotalLoadTime()
Returns the total number of nanoseconds the cache has spent loading new values.
|
long getHitCount()
com.google.common.cache.Cache
lookup methods have returned a cached value.com.google.common.cache.CacheStats#hitCount()
long getMissCount()
com.google.common.cache.Cache
lookup methods have returned an uncached (newly
loaded) value, or null. Multiple concurrent calls to com.google.common.cache.Cache
lookup methods on an
absent value can result in multiple misses, all returning the results of a single cache load operation.com.google.common.cache.CacheStats#missCount()
long getLoadSuccessCount()
com.google.common.cache.Cache
lookup methods have successfully loaded a new
value. This is usually incremented in conjunction with getMissCount()
, though getMissCount
is
also incremented when an exception is encountered during cache loading (see getLoadExceptionCount()
).
Multiple concurrent misses for the same key will result in a single load operation. This may be incremented not
in conjunction with getMissCount
if the load occurs as a result of a refresh or if the cache loader
returned more items than was requested. getMissCount
may also be incremented not in conjunction with this
(nor getLoadExceptionCount()
) on calls to getIfPresent
.com.google.common.cache.CacheStats#loadSuccessCount()
long getLoadExceptionCount()
com.google.common.cache.Cache
lookup methods threw an exception while loading
a new value. This is usually incremented in conjunction with getMissCount
, though getMissCount
is
also incremented when cache loading completes successfully (see getLoadSuccessCount()
). Multiple
concurrent misses for the same key will result in a single load operation. This may be incremented not in
conjunction with getMissCount
if the load occurs as a result of a refresh or if the cache loader returned
more items than was requested. getMissCount
may also be incremented not in conjunction with this (nor
getLoadSuccessCount()
) on calls to getIfPresent
.com.google.common.cache.CacheStats#loadExceptionCount()
long getTotalLoadTime()
getLoadSuccessCount
or getLoadExceptionCount
is
incremented.com.google.common.cache.CacheStats#totalLoadTime()
long getEvictionCount()
com.google.common.cache.CacheStats#evictionCount()
Copyright © 2020 SAP SE. All rights reserved.