Module org.mule.metrics.api
Interface InstrumentBuilder<T extends Instrument>
- Type Parameters:
T- the type of theInstrumentthat will be returned.
- All Known Subinterfaces:
LongCounterBuilder,LongGaugeBuilder,LongUpDownCounterBuilder
public interface InstrumentBuilder<T extends Instrument>
A builder for
Instrument's component.-
Method Summary
Modifier and TypeMethodDescriptionbuild()withDescription(String description) Sets the description for the instrument to build.Sets the unit for this instrument to build.
-
Method Details
-
withDescription
Sets the description for the instrument to build.- Parameters:
description- the description.- Returns:
- the
LongCounterBuilder
-
withUnit
Sets the unit for this instrument to build.- Parameters:
unit- the unit.- Returns:
- the
LongCounterBuilder.
-
build
T build()- Returns:
- the
InstrumentBuilder.
-