Class Metrics.NoopMetrics

java.lang.Object
io.split.engine.metrics.Metrics.NoopMetrics
All Implemented Interfaces:
Metrics
Enclosing interface:
Metrics

public static final class Metrics.NoopMetrics
extends Object
implements Metrics
  • Constructor Details

  • Method Details

    • count

      public void count​(String counter, long delta)
      Description copied from interface: Metrics
      Adjusts the specified counter by a given delta.

      This method is is non-blocking and is guaranteed not to throw an exception.

      Specified by:
      count in interface Metrics
      Parameters:
      counter - the name of the counter to adjust
      delta - the amount to adjust the counter by
    • time

      public void time​(String operation, long timeInMs)
      Description copied from interface: Metrics
      Records an execution time in milliseconds for the specified named operation.

      This method is non-blocking and is guaranteed not to throw an exception.

      Specified by:
      time in interface Metrics
      Parameters:
      operation - the name of the timed operation
      timeInMs - the time in milliseconds