Class Value
java.lang.Object
org.apache.kafka.common.metrics.stats.Value
- All Implemented Interfaces:
Measurable,MeasurableStat,MetricValueProvider<Double>,Stat
An instantaneous value.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoublemeasure(MetricConfig config, long now) Measure this quantity and return the result as a doublevoidrecord(MetricConfig config, double value, long timeMs) Record the given value
-
Constructor Details
-
Value
public Value()
-
-
Method Details
-
measure
Description copied from interface:MeasurableMeasure this quantity and return the result as a double- Specified by:
measurein interfaceMeasurable- Parameters:
config- The configuration for this metricnow- The POSIX time in milliseconds the measurement is being taken- Returns:
- The measured value
-
record
Description copied from interface:StatRecord the given value
-