public interface MetricRegistryListener extends EventListener
| Modifier and Type | Interface and Description |
|---|---|
static class |
MetricRegistryListener.Base
A no-op implementation of
MetricRegistryListener. |
| Modifier and Type | Method and Description |
|---|---|
void |
onCounterAdded(MetricName name,
Counter counter)
Called when a
Counter is added to the registry. |
void |
onCounterRemoved(MetricName name)
Called when a
Counter is removed from the registry. |
void |
onGaugeAdded(MetricName name,
Gauge<?> gauge)
Called when a
Gauge is added to the registry. |
void |
onGaugeRemoved(MetricName name)
Called when a
Gauge is removed from the registry. |
void |
onHistogramAdded(MetricName name,
Histogram histogram)
Called when a
Histogram is added to the registry. |
void |
onHistogramRemoved(MetricName name)
Called when a
Histogram is removed from the registry. |
void |
onMeterAdded(MetricName name,
Meter meter)
Called when a
Meter is added to the registry. |
void |
onMeterRemoved(MetricName name)
Called when a
Meter is removed from the registry. |
void |
onTimerAdded(MetricName name,
Timer timer)
Called when a
Timer is added to the registry. |
void |
onTimerRemoved(MetricName name)
Called when a
Timer is removed from the registry. |
void onGaugeAdded(MetricName name, Gauge<?> gauge)
Gauge is added to the registry.name - the gauge's namegauge - the gaugevoid onGaugeRemoved(MetricName name)
Gauge is removed from the registry.name - the gauge's namevoid onCounterAdded(MetricName name, Counter counter)
Counter is added to the registry.name - the counter's namecounter - the countervoid onCounterRemoved(MetricName name)
Counter is removed from the registry.name - the counter's namevoid onHistogramAdded(MetricName name, Histogram histogram)
Histogram is added to the registry.name - the histogram's namehistogram - the histogramvoid onHistogramRemoved(MetricName name)
Histogram is removed from the registry.name - the histogram's namevoid onMeterAdded(MetricName name, Meter meter)
Meter is added to the registry.name - the meter's namemeter - the metervoid onMeterRemoved(MetricName name)
Meter is removed from the registry.name - the meter's namevoid onTimerAdded(MetricName name, Timer timer)
Timer is added to the registry.name - the timer's nametimer - the timervoid onTimerRemoved(MetricName name)
Timer is removed from the registry.name - the timer's nameCopyright © 2018. All Rights Reserved.