Interface CacheMBean
- All Known Implementing Classes:
CacheMBeanImpl
public interface CacheMBean
A JMX interface for caches.
- Since:
- 10.2
- Version:
- 10.2
- Author:
- Luke
-
Method Summary
Modifier and TypeMethodDescriptionReturns the cache hit rate percentage.getHits()
Returns the number of success requests made to this cache.getName()
Returns the cache name.Returns the number of requests made to this cache.getSize()
Returns the number of items in the cache.getType()
Returns the cache type.
-
Method Details
-
getRequests
Long getRequests()Returns the number of requests made to this cache.- Returns:
- the number of requests
-
getHits
Long getHits()Returns the number of success requests made to this cache.- Returns:
- the number of hits
-
getName
-
getType
-
getSize
-
getHitRate
Float getHitRate()Returns the cache hit rate percentage.- Returns:
- the percentage, or zero if no requests have been made
-