Class CacheMBeanImpl
java.lang.Object
org.deltava.util.jmx.CacheMBeanImpl
- All Implemented Interfaces:
CacheMBean
A JMX MBean implementation for caches.
- Since:
- 10.2
- Version:
- 10.2
- Author:
- Luke
-
Constructor Summary
Constructors -
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.
-
Constructor Details
-
CacheMBeanImpl
-
-
Method Details
-
getRequests
Description copied from interface:CacheMBeanReturns the number of requests made to this cache.- Specified by:
getRequestsin interfaceCacheMBean- Returns:
- the number of requests
-
getHits
Description copied from interface:CacheMBeanReturns the number of success requests made to this cache.- Specified by:
getHitsin interfaceCacheMBean- Returns:
- the number of hits
-
getName
Description copied from interface:CacheMBeanReturns the cache name.- Specified by:
getNamein interfaceCacheMBean- Returns:
- the name
-
getType
Description copied from interface:CacheMBeanReturns the cache type.- Specified by:
getTypein interfaceCacheMBean- Returns:
- the type name
-
getSize
Description copied from interface:CacheMBeanReturns the number of items in the cache.- Specified by:
getSizein interfaceCacheMBean- Returns:
- the number of items
-
getHitRate
Description copied from interface:CacheMBeanReturns the cache hit rate percentage.- Specified by:
getHitRatein interfaceCacheMBean- Returns:
- the percentage, or zero if no requests have been made
-