Interface Measurable
- All Superinterfaces:
MetricValueProvider<Double>
- All Known Subinterfaces:
MeasurableStat
- All Known Implementing Classes:
Avg,CumulativeCount,CumulativeSum,ExponentialWeightedAvg,Frequencies,Max,Min,MinTokenBucket,Percentiles,Rate,SampledStat,SimpleRate,TokenBucket,Value,WindowedCount,WindowedSum
A measurable quantity that can be registered as a metric
-
Method Summary
Modifier and TypeMethodDescriptiondoublemeasure(MetricConfig config, long now) Measure this quantity and return the result as a double.default Doublevalue(MetricConfig config, long now) Measure this quantity and return the result as a double.
-
Method Details
-
measure
Measure this quantity and return the result as a double.- Parameters:
config- The configuration for this metricnow- The POSIX time in milliseconds the measurement is being taken- Returns:
- The measured value
-
value
Measure this quantity and return the result as a double. This default implementation delegates tomeasure(MetricConfig, long).- Specified by:
valuein interfaceMetricValueProvider<Double>- Parameters:
config- The configuration for this metricnow- The POSIX time in milliseconds the measurement is being taken- Returns:
- The measured value as a
Double
-