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