Class MeanMetric

org.elasticsearch.common.metrics.MeanMetric

public final class MeanMetric extends
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Returns the current count of this metric.
    void
    inc​(long n)
     
    double
     
    long
    sum()
     

    Methods inherited from class java.lang.

    , , , , , , , , , ,
  • Constructor Details

    • MeanMetric

      public MeanMetric()
  • Method Details

    • inc

      public void inc(long n)
    • count

      public long count()
      Returns the current count of this metric. This metric supports only inc(long) that increases the counter whenever it's invoked; hence, the returned count is always non-negative.
    • sum

      public long sum()
    • mean

      public double mean()