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