Package org.infinispan.commons.stat
Class DefaultSimpleStat
java.lang.Object
org.infinispan.commons.stat.DefaultSimpleStat
- All Implemented Interfaces:
SimpleStat
- Direct Known Subclasses:
SimpleStateWithTimer
A default
SimpleStat implementation.- Since:
- 10.0
- Author:
- Pedro Ruivo
-
Field Summary
Fields inherited from interface org.infinispan.commons.stat.SimpleStat
EMPTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongcount()longgetAverage(long defaultValue) longgetMax(long defaultValue) longgetMin(long defaultValue) voidrecord(long value) voidreset()voidsetTimer(TimerTracker timer) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.infinispan.commons.stat.SimpleStat
isEmpty
-
Constructor Details
-
DefaultSimpleStat
public DefaultSimpleStat()
-
-
Method Details
-
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
-
setTimer
- Specified by:
setTimerin interfaceSimpleStat
-
reset
public void reset()- Specified by:
resetin interfaceSimpleStat
-