Class NoopMeter

  • All Implemented Interfaces:
    Meter

    public class NoopMeter
    extends Object
    implements Meter
    • Field Detail

      • INSTANCE

        public static final NoopMeter INSTANCE
    • Method Detail

      • counter

        public Counter counter​(String name,
                               Map<String,​String> tags)
        Description copied from interface: Meter
        Creates a new counter.
        Specified by:
        counter in interface Meter
        Parameters:
        name - the name of the counter.
        tags - the tags for the counter.
        Returns:
        the created counter.
      • valueRecorder

        public ValueRecorder valueRecorder​(String name,
                                           Map<String,​String> tags)
        Description copied from interface: Meter
        Creates a new value recorder.
        Specified by:
        valueRecorder in interface Meter
        Parameters:
        name - the name of the value recorder.
        tags - the tags of the value recorder.
        Returns:
        the created value recorder.