public static interface DoubleCounter.Builder extends SynchronousInstrument.Builder
DoubleCounter.| Modifier and Type | Method and Description |
|---|---|
DoubleCounter |
build()
Builds and returns a
Instrument with the desired options. |
DoubleCounter.Builder |
setDescription(String description)
Sets the description of the
Instrument. |
DoubleCounter.Builder |
setUnit(String unit)
Sets the unit of the
Instrument. |
DoubleCounter.Builder setDescription(String description)
Instrument.BuilderInstrument.
Default value is "".
setDescription in interface Instrument.Builderdescription - the description of the Instrument.DoubleCounter.Builder setUnit(String unit)
Instrument.BuilderInstrument.
Default value is "1".
setUnit in interface Instrument.Builderunit - the unit of the Instrument.DoubleCounter build()
Instrument.BuilderInstrument with the desired options.build in interface Instrument.Builderbuild in interface SynchronousInstrument.BuilderInstrument with the desired options.