Class Meter
java.lang.Object
org.apache.kafka.common.metrics.stats.Meter
- All Implemented Interfaces:
- CompoundStat,- Stat
A compound stat that includes a rate metric and a cumulative total metric.
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.apache.kafka.common.metrics.CompoundStatCompoundStat.NamedMeasurable
- 
Constructor SummaryConstructorsConstructorDescriptionMeter(TimeUnit unit, MetricName rateMetricName, MetricName totalMetricName) Construct a Meter with provided time unitMeter(TimeUnit unit, SampledStat rateStat, MetricName rateMetricName, MetricName totalMetricName) Construct a Meter with provided time unitMeter(MetricName rateMetricName, MetricName totalMetricName) Construct a Meter with seconds as time unitMeter(SampledStat rateStat, MetricName rateMetricName, MetricName totalMetricName) Construct a Meter with seconds as time unit
- 
Method SummaryModifier and TypeMethodDescriptionvoidrecord(MetricConfig config, double value, long timeMs) Record the given valuestats()toString()
- 
Constructor Details- 
MeterConstruct a Meter with seconds as time unit
- 
MeterConstruct a Meter with provided time unit
- 
MeterConstruct a Meter with seconds as time unit
- 
Meterpublic Meter(TimeUnit unit, SampledStat rateStat, MetricName rateMetricName, MetricName totalMetricName) Construct a Meter with provided time unit
 
- 
- 
Method Details- 
stats- Specified by:
- statsin interface- CompoundStat
 
- 
recordDescription copied from interface:StatRecord the given value
- 
toString
 
-