Package io.opentelemetry.api.metrics
Interface LongUpDownCounter.BoundLongUpDownCounter
-
- All Superinterfaces:
SynchronousInstrument.BoundInstrument
- Enclosing interface:
- LongUpDownCounter
@ThreadSafe public static interface LongUpDownCounter.BoundLongUpDownCounter extends SynchronousInstrument.BoundInstrument
ABound Instrumentfor aLongUpDownCounter.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidadd(long increment)Adds the givenincrementto the current value.voidunbind()Unbinds the currentBoundfrom the Instrument.
-
-
-
Method Detail
-
add
void add(long increment)
Adds the givenincrementto 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.BoundInstrumentUnbinds the currentBoundfrom the Instrument.After this method returns the current instance
Boundis considered invalid (not being managed by the instrument).- Specified by:
unbindin interfaceSynchronousInstrument.BoundInstrument
-
-