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