Class NoOpCounter

  • All Implemented Interfaces:
    Counter

    public class NoOpCounter
    extends Object
    implements Counter
    A counter which does not do anything.
    Since:
    2022.1
    • Constructor Detail

      • NoOpCounter

        public NoOpCounter()
    • Method Detail

      • increment

        public void increment​(double value)
        Specified by:
        increment in interface Counter
        Parameters:
        value - Increment counter to the given value
      • startMsecsTimer

        @NotNull
        public Stoppable startMsecsTimer()
        Description copied from interface: Counter
        Allows reporting value as msecs interval
        Specified by:
        startMsecsTimer in interface Counter