Package org.elasticsearch.common.metrics
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 Detail
-
inc
public void inc(long n)
-
count
public long count()
Returns the current count of this metric. This metric supports onlyinc(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()
-
-