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(java.lang.String description)
Sets the description of the
Instrument . |
DoubleCounter.Builder |
setUnit(java.lang.String unit)
Sets the unit of the
Instrument . |
DoubleCounter.Builder setDescription(java.lang.String description)
Instrument.Builder
Instrument
.
Default value is ""
.
setDescription
in interface Instrument.Builder
description
- the description of the Instrument.DoubleCounter.Builder setUnit(java.lang.String unit)
Instrument.Builder
Instrument
.
Default value is "1"
.
setUnit
in interface Instrument.Builder
unit
- the unit of the Instrument.DoubleCounter build()
Instrument.Builder
Instrument
with the desired options.build
in interface Instrument.Builder
build
in interface SynchronousInstrument.Builder
Instrument
with the desired options.