Class JmxRegistration

java.lang.Object
com.github.benmanes.caffeine.jcache.management.JmxRegistration

public final class JmxRegistration extends Object
Jmx cache utilities.
  • Method Details

    • 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 register
      mxbean - the management bean
      type - 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 unregister
      type - the mxbean type