@ThreadSafe public static interface LongValueRecorder.BoundLongValueRecorder extends SynchronousInstrument.BoundInstrument
Bound Instrument
for a LongValueRecorder
.Modifier and Type | Method and Description |
---|---|
void |
record(long value)
Records the given measurement, associated with the current
Context . |
void |
unbind()
Unbinds the current
Bound from the Instrument. |
void record(long value)
Context
.value
- the measurement to record.java.lang.IllegalArgumentException
- if value is negative.void unbind()
SynchronousInstrument.BoundInstrument
Bound
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