Package org.apache.heron.api.metric
Class CumulativeCountMetric
- java.lang.Object
-
- org.apache.heron.api.metric.CountMetric
-
- org.apache.heron.api.metric.CumulativeCountMetric
-
public class CumulativeCountMetric extends CountMetric
This is a different kind of counter that value is not reset after fetched.
-
-
Constructor Summary
Constructors Constructor Description CumulativeCountMetric()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Long
getValueAndReset()
-
Methods inherited from class org.apache.heron.api.metric.CountMetric
getValue, incr, incrBy
-
-
-
-
Method Detail
-
getValueAndReset
public Long getValueAndReset()
- Specified by:
getValueAndReset
in interfaceIMetric<Long>
- Overrides:
getValueAndReset
in classCountMetric
-
-