public class NoOpMetricsRegistry extends java.lang.Object implements MetricsRegistry
MetricsRegistry implementation for when no actual metrics need to be
recorded but a registry is still required.| Constructor and Description |
|---|
NoOpMetricsRegistry() |
| Modifier and Type | Method and Description |
|---|---|
Counter |
newCounter(java.lang.String group,
Counter counter)
Register existing
Counter with this registry |
Counter |
newCounter(java.lang.String group,
java.lang.String name)
Create and register a new
Counter |
<T> Gauge<T> |
newGauge(java.lang.String group,
Gauge<T> gauge)
Register an existing
Gauge |
<T> Gauge<T> |
newGauge(java.lang.String group,
java.lang.String name,
T value)
Create and register a new
Gauge |
Timer |
newTimer(java.lang.String group,
java.lang.String name)
Create and Register a new
Timer |
Timer |
newTimer(java.lang.String group,
Timer timer)
Register existing
Timer with this registry |
public Counter newCounter(java.lang.String group, java.lang.String name)
MetricsRegistryCounternewCounter in interface MetricsRegistrygroup - Group for this Countername - Name of to-be-created Counterpublic Counter newCounter(java.lang.String group, Counter counter)
MetricsRegistryCounter with this registrynewCounter in interface MetricsRegistrygroup - Group for this Countercounter - Existing Counter to registerpublic <T> Gauge<T> newGauge(java.lang.String group, java.lang.String name, T value)
MetricsRegistryGaugenewGauge in interface MetricsRegistryT - Type the Gauge will be wrappinggroup - Group for this Gaugename - Name of to-be-created Gaugevalue - Initial value for the Gaugepublic <T> Gauge<T> newGauge(java.lang.String group, Gauge<T> gauge)
MetricsRegistryGaugenewGauge in interface MetricsRegistryT - Type the Gauge will be wrappinggroup - Group for this Gaugegauge - Initial value for the Gaugepublic Timer newTimer(java.lang.String group, java.lang.String name)
MetricsRegistryTimernewTimer in interface MetricsRegistrygroup - Group for this Timername - Name of to-be-created Timerpublic Timer newTimer(java.lang.String group, Timer timer)
MetricsRegistryTimer with this registrynewTimer in interface MetricsRegistrygroup - Group for this Timertimer - Existing Timer to register