Class CacheMetricsPublisher

java.lang.Object
com.levigo.jadice.web.server.config.metrics.CacheMetricsPublisher

public class CacheMetricsPublisher extends Object
A service to publish cache metrics via micrometer. Values are published every 5 seconds.

To enable the service, call CacheMetricsPublisher.start(). Multiple start is prevented.

  • Method Details

    • start

      public static void start()
      May only be called once
    • shutdown

      public static void shutdown()
    • shutdownAndWait

      public static boolean shutdownAndWait() throws InterruptedException
      Throws:
      InterruptedException