Interface ConsumerMetrics.ConsumerTimer

Enclosing interface:
ConsumerMetrics

public static interface ConsumerMetrics.ConsumerTimer
Represents a timer interface used for measuring and observing the duration of tasks. Start measuring elapsed time when created.
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    Close this timer.
    double
    Return the elapsed time in milliseconds.
  • Method Details

    • observeDuration

      double observeDuration()
      Return the elapsed time in milliseconds.
    • close

      default void close()
      Close this timer.