B - the specific type of Bound Instrument this instrument can provide.@ThreadSafe public interface InstrumentWithBinding<B extends InstrumentWithBinding.BoundInstrument> extends Instrument
| Modifier and Type | Interface and Description |
|---|---|
static interface |
InstrumentWithBinding.BoundInstrument |
Instrument.Builder| Modifier and Type | Method and Description |
|---|---|
B |
bind(String... labelKeyValuePairs)
Returns a
Bound Instrument associated with the specified labels. |
B bind(String... labelKeyValuePairs)
Bound Instrument associated with the specified labels. Multiples requests
with the same set of labels may return the same Bound Instrument instance.
It is recommended that callers keep a reference to the Bound Instrument instead of always calling this method for every operation.
labelKeyValuePairs - the set of labels, as key-value pairs.Bound InstrumentNullPointerException - if labelValues is null.