Interface Metrics

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Interface Description
      static class  Metrics.NoopMetrics  
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void count​(String counter, long delta)
      Adjusts the specified counter by a given delta.
      void time​(String operation, long timeInMs)
      Records an execution time in milliseconds for the specified named operation.
    • Method Detail

      • count

        void count​(String counter,
                   long delta)
        Adjusts the specified counter by a given delta.

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

        Parameters:
        counter - the name of the counter to adjust
        delta - the amount to adjust the counter by
      • time

        void time​(String operation,
                  long timeInMs)
        Records an execution time in milliseconds for the specified named operation.

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

        Parameters:
        operation - the name of the timed operation
        timeInMs - the time in milliseconds