Class NullMetricsProvider

  • All Implemented Interfaces:
    MetricsProvider

    public class NullMetricsProvider
    extends java.lang.Object
    implements MetricsProvider
    This is a dummy MetricsProvider which does nothing.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static MetricsProvider INSTANCE
      Instance of NullMetricsProvider useful for tests.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void configure​(java.util.Properties configuration)
      Configure the provider.
      void dump​(java.util.function.BiConsumer<java.lang.String,​java.lang.Object> sink)
      Dumps all metrics as a key-value pair.
      MetricsContext getRootContext()
      Provides access to the root context.
      void resetAllValues()
      Reset all values.
      void start()
      Start the provider.
      void stop()
      Releases resources held by the provider.
      This method must not throw exceptions.
      This method can be called more than once.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait