Class Frequency
- java.lang.Object
-
- org.apache.kafka.common.metrics.stats.Frequency
-
public class Frequency extends Object
Definition of a frequency metric used in aFrequencies
compound statistic.
-
-
Constructor Summary
Constructors Constructor Description Frequency(MetricName name, double centerValue)
Create an instance with the given name and center point value.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
centerValue()
Get the value of this metrics center point.MetricName
name()
Get the name of this metric.String
toString()
-
-
-
Constructor Detail
-
Frequency
public Frequency(MetricName name, double centerValue)
Create an instance with the given name and center point value.- Parameters:
name
- the name of the frequency metric; may not be nullcenterValue
- the value identifying theFrequencies
bucket to be reported
-
-
Method Detail
-
name
public MetricName name()
Get the name of this metric.- Returns:
- the metric name; never null
-
centerValue
public double centerValue()
Get the value of this metrics center point.- Returns:
- the center point value
-
-