Module org.mule.metrics.api
Interface LongGaugeBuilder
- All Superinterfaces:
InstrumentBuilder<LongGauge>
The
LongGaugeBuilder interface is used to construct instances of LongGauge. This interface extends
InstrumentBuilder with a generic type of LongGauge. It provides a method to supply the value of the gauge using
a Supplier.-
Method Summary
Modifier and TypeMethodDescriptionwithValueSupplier(Supplier<Long> valueSupplier) Specifies the supplier that provides the current value of the gauge.Methods inherited from interface org.mule.metrics.api.instrument.builder.InstrumentBuilder
build, withDescription, withUnit
-
Method Details
-
withValueSupplier
Specifies the supplier that provides the current value of the gauge.- Parameters:
valueSupplier- aSupplierofLongthat supplies the value for the gauge.- Returns:
- the current instance of
LongGaugeBuilderfor method chaining.
-