public abstract class MetricsVisitor
extends java.lang.Object
ReadableMetricsRegistry
,
encapsulating the logic of what to be done with each metric in the counter and gauge methods. This makes it easy
to quickly process all of the metrics in a registry.Constructor and Description |
---|
MetricsVisitor() |
Modifier and Type | Method and Description |
---|---|
abstract void |
counter(Counter counter) |
abstract <T> void |
gauge(Gauge<T> gauge) |
abstract void |
timer(Timer timer) |
void |
visit(Metric metric) |