org.apache.kafka.common.metrics
Interface Measurable

All Known Subinterfaces:
MeasurableStat
All Known Implementing Classes:
Avg, Count, Max, Min, Percentiles, Rate, Rate.SampledTotal, SampledStat, Total

public interface Measurable

A measurable quantity that can be registered as a metric


Method Summary
 double measure(MetricConfig config, long now)
          Measure this quantity and return the result as a double
 

Method Detail

measure

double measure(MetricConfig config,
               long now)
Measure this quantity and return the result as a double

Parameters:
config - The configuration for this metric
now - The POSIX time in milliseconds the measurement is being taken
Returns:
The measured value