public class Meter extends 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(TimeUnit unit,
MetricName rateMetricName,
MetricName totalMetricName)
Construct a Meter with provided time unit
|
Meter(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
|
List<CompoundStat.NamedMeasurable> |
stats() |
public Meter(MetricName rateMetricName, MetricName totalMetricName)
public Meter(TimeUnit unit, MetricName rateMetricName, MetricName totalMetricName)
public Meter(SampledStat rateStat, MetricName rateMetricName, MetricName totalMetricName)
public Meter(TimeUnit unit, SampledStat rateStat, MetricName rateMetricName, MetricName totalMetricName)
public List<CompoundStat.NamedMeasurable> stats()
stats
in interface CompoundStat
public void record(MetricConfig config, double value, long timeMs)
Stat