@ThreadSafe public static interface LongCounter.BoundLongCounter extends InstrumentWithBinding.BoundInstrument
Bound Instrument for a LongCounter.| Modifier and Type | Method and Description |
|---|---|
void |
add(long delta)
Adds the given
delta to the current value. |
void |
unbind()
Unbinds the current
Bound from the Instrument. |
void add(long delta)
delta to the current value. The values can be negative iff monotonic
was set to false.
The value added is associated with the current Context.
delta - the value to add.void unbind()
InstrumentWithBinding.BoundInstrumentBound from the Instrument.
After this method returns the current instance Bound is considered invalid (not
being managed by the instrument).
unbind in interface InstrumentWithBinding.BoundInstrument