Class JmxRegistration

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

public final class JmxRegistration extends Object
Jmx cache utilities.
Author:
ben.manes@gmail.com (Ben Manes)
  • Method Details

    • registerMXBean

      public static void registerMXBean(javax.cache.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(CacheProxy<?,?> cache, JmxRegistration.MBeanType type)
      Unregisters the JMX management bean for the cache.
      Parameters:
      cache - the cache to unregister
      type - the mxbean type