Package io.opentelemetry.api.metrics
Interface DoubleUpDownCounter.BoundDoubleUpDownCounter
-
- All Superinterfaces:
SynchronousInstrument.BoundInstrument
- Enclosing interface:
- DoubleUpDownCounter
@ThreadSafe public static interface DoubleUpDownCounter.BoundDoubleUpDownCounter extends SynchronousInstrument.BoundInstrument
ABound Instrument
for aDoubleUpDownCounter
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
add(double increment)
Adds the givenincrement
to the current value.void
unbind()
Unbinds the currentBound
from the Instrument.
-
-
-
Method Detail
-
add
void add(double increment)
Adds the givenincrement
to the current value.The value added is associated with the current
Context
.- Parameters:
increment
- the value to add.
-
unbind
void unbind()
Description copied from interface:SynchronousInstrument.BoundInstrument
Unbinds the currentBound
from the Instrument.After this method returns the current instance
Bound
is considered invalid (not being managed by the instrument).- Specified by:
unbind
in interfaceSynchronousInstrument.BoundInstrument
-
-