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:CacheMBean
Returns the number of requests made to this cache.- Specified by:
getRequests
in interfaceCacheMBean
- Returns:
- the number of requests
-
getHits
Description copied from interface:CacheMBean
Returns the number of success requests made to this cache.- Specified by:
getHits
in interfaceCacheMBean
- Returns:
- the number of hits
-
getName
Description copied from interface:CacheMBean
Returns the cache name.- Specified by:
getName
in interfaceCacheMBean
- Returns:
- the name
-
getType
Description copied from interface:CacheMBean
Returns the cache type.- Specified by:
getType
in interfaceCacheMBean
- Returns:
- the type name
-
getSize
Description copied from interface:CacheMBean
Returns the number of items in the cache.- Specified by:
getSize
in interfaceCacheMBean
- Returns:
- the number of items
-
getHitRate
Description copied from interface:CacheMBean
Returns the cache hit rate percentage.- Specified by:
getHitRate
in interfaceCacheMBean
- Returns:
- the percentage, or zero if no requests have been made
-