Interface LongGauge

All Superinterfaces:
Instrument

public interface LongGauge extends Instrument
The LongGauge interface represents an instrument that records and retrieves long values. This interface extends the Instrument interface and provides methods to retrieve the current value of the gauge as a long, and to obtain the unit of the measurement.
  • Method Summary

    Modifier and Type
    Method
    Description
    Retrieves the unit associated with the gauge's value.
    long
    Retrieves the current value of the gauge as a long.

    Methods inherited from interface org.mule.metrics.api.instrument.Instrument

    getDescription, getMeter, getName, reset
  • Method Details

    • getValueAsLong

      long getValueAsLong()
      Retrieves the current value of the gauge as a long.
      Returns:
      the current value for the gauge.
    • getUnit

      String getUnit()
      Retrieves the unit associated with the gauge's value.
      Returns:
      a String representing the unit of the measurement.