- All Superinterfaces:
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 TypeMethodDescriptiongetUnit()Retrieves the unit associated with the gauge's value.longRetrieves 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
Stringrepresenting the unit of the measurement.
-