java.lang.Object
org.apache.kafka.common.metrics.stats.Meter
All Implemented Interfaces:
CompoundStat, Stat

public class Meter extends Object implements CompoundStat
A compound stat that includes a rate metric and a cumulative total metric.
  • Constructor Details

  • Method Details

    • stats

      Specified by:
      stats in interface CompoundStat
    • record

      public void record(MetricConfig config, double value, long timeMs)
      Description copied from interface: Stat
      Record the given value
      Specified by:
      record in interface Stat
      Parameters:
      config - The configuration to use for this metric
      value - The value to record
      timeMs - The POSIX time in milliseconds this value occurred
    • toString

      public String toString()
      Overrides:
      toString in class Object