public final class EmptyMetricRegistry extends java.lang.Object implements MetricRegistry
MetricRegistry.Counter, MetricRegistry.SampleListener
Modifier and Type | Field and Description |
---|---|
static EmptyMetricRegistry |
INSTANCE |
Modifier and Type | Method and Description |
---|---|
MetricRegistry.SampleListener |
distribution(java.lang.String id,
java.lang.String... tagNameValuePairs)
Register a sample distribution.
|
void |
gauge(java.lang.String id,
java.util.function.Supplier<java.lang.Number> supplier,
java.lang.String... tagNameValuePairs)
Register a gauge using the provided supplier.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
counter, registerDistribution, registerGauge, registerGuage
public static final EmptyMetricRegistry INSTANCE
public MetricRegistry.SampleListener distribution(java.lang.String id, java.lang.String... tagNameValuePairs)
MetricRegistry
MetricRegistry.SampleListener
. Will reuse an existing MetricRegistry.SampleListener
if the distribution already
exists.distribution
in interface MetricRegistry
tagNameValuePairs
- Pairs of tag name and tag value. Number of parameters must be a multiple of 2.public void gauge(java.lang.String id, java.util.function.Supplier<java.lang.Number> supplier, java.lang.String... tagNameValuePairs)
MetricRegistry
gauge
in interface MetricRegistry
tagNameValuePairs
- Pairs of tag name and tag value. Number of parameters must be a multiple of 2.