@MXBean public interface CacheStatisticsMXBean
reset()
.Modifier and Type | Method and Description |
---|---|
long |
getCacheEvictions()
Returns the total number of evictions from the cache.
|
long |
getCacheGets()
Returns the total number of get requests to the cache.
|
float |
getCacheHitPercentage()
This is a percentage representation of the positive cache efficiency, by computing how many get
requests resulted in a hit in contrast to all get requests.
|
long |
getCacheHits()
Returns the number of get requests the cache found an entry for.
|
long |
getCacheMisses()
Returns the number of get requests the cache found NO entry for.
|
float |
getCacheMissPercentage()
This is a percentage representation of the negative cache efficiency, by computing for how many
get requests no entry was found in contrast to all get requests .
|
long |
getCachePuts()
Returns the total number of put requests to the cache.
|
long |
getCacheRemovals()
Returns the total number of removal requests to the cache.
|
void |
reset()
Reset all counters in this class to zero
|
void reset()
long getCacheHits()
float getCacheHitPercentage()
It calculates as: (getCacheHits()
/ ()
) * 100.
long getCacheMisses()
float getCacheMissPercentage()
It calculates as: (getCacheMisses()
/ ()
) * 100.
long getCacheGets()
Note that this includes cache misses and hits and doesn't respect whether a key was found or not!
long getCachePuts()
Note that every put request is counted, even those who are immediately evicted.
long getCacheRemovals()
Note that that every remove request is being counted, even those where nothing was removed.
This doens't include evictions. For evictions refer to getCacheEvictions()
long getCacheEvictions()
An eviction is an automatic removal of an cache entry in order to free space.
Copyright © 2024 levigo holding gmbh. All rights reserved.