Class MeanMetric

java.lang.Object
org.elasticsearch.common.metrics.MeanMetric

public final class MeanMetric
extends java.lang.Object
  • Constructor Summary

    Constructors
    Constructor Description
    MeanMetric()  
  • Method Summary

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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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()