Package org.infinispan.commons.stat
Class DefaultSimpleStat
- java.lang.Object
-
- org.infinispan.commons.stat.DefaultSimpleStat
-
- All Implemented Interfaces:
SimpleStat
public class DefaultSimpleStat extends Object implements SimpleStat
A defaultSimpleStatimplementation.- Since:
- 9.4
- Author:
- Pedro Ruivo
-
-
Constructor Summary
Constructors Constructor Description DefaultSimpleStat()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longcount()longgetAverage(long defaultValue)longgetMax(long defaultValue)longgetMin(long defaultValue)voidrecord(long value)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.infinispan.commons.stat.SimpleStat
isEmpty
-
-
-
-
Method Detail
-
record
public void record(long value)
- Specified by:
recordin interfaceSimpleStat
-
getMin
public long getMin(long defaultValue)
- Specified by:
getMinin interfaceSimpleStat
-
getMax
public long getMax(long defaultValue)
- Specified by:
getMaxin interfaceSimpleStat
-
getAverage
public long getAverage(long defaultValue)
- Specified by:
getAveragein interfaceSimpleStat
-
count
public long count()
- Specified by:
countin interfaceSimpleStat
-
-