public final class NoopMetricCollector extends AbstractMetricCollector
MetricCollector that does nothing.
This MetricCollector instance is used if Metric collection is
disabled during runtime. It just discards operations when executed.| Constructor and Description |
|---|
NoopMetricCollector() |
| Modifier and Type | Method and Description |
|---|---|
void |
addCounter(String name)
Add a Counter to the collector.
|
void |
addHistogram(String name)
Add a Histogram to the Collector.
|
void |
addMeter(String name)
Add a Meter to the Collector.
|
void |
decrementCounter(String name,
int amount)
Decrement a Counter by the given amount.
|
void |
incrementCounter(String name,
int amount)
Increment a Counter by the given amount.
|
void |
markMeter(String name)
Mark a checkpoint in the Meter.
|
void |
removeCounter(String name)
Remove a Counter from the collector.
|
void |
removeHistogram(String name)
Remove a Histogram from the Collector.
|
void |
removeMeter(String name)
Remove a Meter from the Collector.
|
void |
updateHistogram(String name,
int amount)
Update the Histogram with the given amount.
|
decrementCounter, incrementCounterpublic void addCounter(String name)
MetricCollectorname - the name of the counter.public void removeCounter(String name)
MetricCollectorname - the name of the counter.public void incrementCounter(String name, int amount)
MetricCollectorname - the name of the counter.amount - the amount to increase.public void decrementCounter(String name, int amount)
MetricCollectorname - the name of the counter.amount - the amount to decrease.public void addMeter(String name)
MetricCollectorname - the name of the counter.public void removeMeter(String name)
MetricCollectorname - the name of the counter.public void markMeter(String name)
MetricCollectorname - the name of the counter.public void addHistogram(String name)
MetricCollectorname - the name of the counter.public void removeHistogram(String name)
MetricCollectorname - the name of the counter.public void updateHistogram(String name, int amount)
MetricCollectorname - the name of the counter.amount - the amount to update.Copyright © 2025. All rights reserved.