public class Meter extends java.lang.Object implements CompoundStat
CompoundStat.NamedMeasurable
Constructor and Description |
---|
Meter(MetricName rateMetricName,
MetricName totalMetricName)
Construct a Meter with seconds as time unit
|
Meter(SampledStat rateStat,
MetricName rateMetricName,
MetricName totalMetricName)
Construct a Meter with seconds as time unit
|
Meter(java.util.concurrent.TimeUnit unit,
MetricName rateMetricName,
MetricName totalMetricName)
Construct a Meter with provided time unit
|
Meter(java.util.concurrent.TimeUnit unit,
SampledStat rateStat,
MetricName rateMetricName,
MetricName totalMetricName)
Construct a Meter with provided time unit
|
Modifier and Type | Method and Description |
---|---|
void |
record(MetricConfig config,
double value,
long timeMs)
Record the given value
|
java.util.List<CompoundStat.NamedMeasurable> |
stats() |
public Meter(MetricName rateMetricName, MetricName totalMetricName)
public Meter(java.util.concurrent.TimeUnit unit, MetricName rateMetricName, MetricName totalMetricName)
public Meter(SampledStat rateStat, MetricName rateMetricName, MetricName totalMetricName)
public Meter(java.util.concurrent.TimeUnit unit, SampledStat rateStat, MetricName rateMetricName, MetricName totalMetricName)
public java.util.List<CompoundStat.NamedMeasurable> stats()
stats
in interface CompoundStat
public void record(MetricConfig config, double value, long timeMs)
Stat