Class CachedMetrics

java.lang.Object
io.split.client.metrics.CachedMetrics
All Implemented Interfaces:
Metrics

public class CachedMetrics
extends Object
implements Metrics
Created by adilaijaz on 9/4/15.
  • 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