Package org.infinispan.commons.stat
Class DefaultSimpleStat
- java.lang.Object
-
- org.infinispan.commons.stat.DefaultSimpleStat
-
- All Implemented Interfaces:
SimpleStat
public class DefaultSimpleStat extends java.lang.Object implements SimpleStat
A defaultSimpleStat
implementation.- Since:
- 10.0
- Author:
- Pedro Ruivo
-
-
Constructor Summary
Constructors Constructor Description DefaultSimpleStat()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
count()
long
getAverage(long defaultValue)
long
getMax(long defaultValue)
long
getMin(long defaultValue)
void
record(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:
record
in interfaceSimpleStat
-
getMin
public long getMin(long defaultValue)
- Specified by:
getMin
in interfaceSimpleStat
-
getMax
public long getMax(long defaultValue)
- Specified by:
getMax
in interfaceSimpleStat
-
getAverage
public long getAverage(long defaultValue)
- Specified by:
getAverage
in interfaceSimpleStat
-
count
public long count()
- Specified by:
count
in interfaceSimpleStat
-
-