Interface ConcurrentGauge

All Superinterfaces:
Metric

public interface ConcurrentGauge extends Metric
A concurrent gauge is a gauge that measures parallel invocations of a method.
Since:
2.0
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    dec()
    Decrement the concurrent gauge's value by 1
    long
    Get the current value of the ConcurrentGauge
    long
    Get the maximum value of the ConcurrentGauge for the previously completed minute.
    long
    Get the minimum value of the ConcurrentGauge for the previously completed minute.
    void
    inc()
    Increment the concurrent gauge's value by 1
  • Method Details

    • getCount

      long getCount()
      Get the current value of the ConcurrentGauge
      Returns:
      the current value.
    • getMax

      long getMax()
      Get the maximum value of the ConcurrentGauge for the previously completed minute.

      This represents the highest number of concurrent invocations in the last complete minute.

      Returns:
      The maximum value in the previously completed minute.
    • getMin

      long getMin()
      Get the minimum value of the ConcurrentGauge for the previously completed minute.

      This represents the lowest number of concurrent invocations in the last complete minute.

      Returns:
      The minimum value in the previously completed minute.
    • inc

      void inc()
      Increment the concurrent gauge's value by 1
    • dec

      void dec()
      Decrement the concurrent gauge's value by 1