Class JmxRegistration
- java.lang.Object
-
- com.github.benmanes.caffeine.jcache.management.JmxRegistration
-
public final class JmxRegistration extends Object
Jmx cache utilities.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classJmxRegistration.MBeanType
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidregisterMXBean(Cache<?,?> cache, Object mxbean, JmxRegistration.MBeanType type)Registers the JMX management bean for the cache.static voidunregisterMXBean(Cache<?,?> cache, JmxRegistration.MBeanType type)Unregisters the JMX management bean for the cache.
-
-
-
Method Detail
-
registerMXBean
public static void registerMXBean(Cache<?,?> cache, Object mxbean, JmxRegistration.MBeanType type)
Registers the JMX management bean for the cache.- Parameters:
cache- the cache to registermxbean- the management beantype- the mxbean type
-
unregisterMXBean
public static void unregisterMXBean(Cache<?,?> cache, JmxRegistration.MBeanType type)
Unregisters the JMX management bean for the cache.- Parameters:
cache- the cache to unregistertype- the mxbean type
-
-