Class NullMetrics

  • All Implemented Interfaces:
    Metrics

    public class NullMetrics
    extends java.lang.Object
    implements Metrics
    No-op version of Metrics
    • Constructor Summary

      Constructors 
      Constructor Description
      NullMetrics()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Counter counter​(java.lang.Object obj, java.lang.String name)  
      Histogram histogram​(java.lang.Object obj, java.lang.String name)  
      Timer timer​(java.lang.Object obj, java.lang.String name)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NullMetrics

        public NullMetrics()
    • Method Detail

      • histogram

        public Histogram histogram​(java.lang.Object obj,
                                   java.lang.String name)
        Specified by:
        histogram in interface Metrics
      • timer

        public Timer timer​(java.lang.Object obj,
                           java.lang.String name)
        Specified by:
        timer in interface Metrics
      • counter

        public Counter counter​(java.lang.Object obj,
                               java.lang.String name)
        Specified by:
        counter in interface Metrics