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
-
Method Summary
Modifier and TypeMethodDescriptionlong
count()
long
getAverage
(long defaultValue) long
getMax
(long defaultValue) long
getMin
(long defaultValue) void
record
(long value) void
reset()
void
setTimer
(TimerTracker timer) 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
-
Constructor Details
-
DefaultSimpleStat
public DefaultSimpleStat()
-
-
Method Details
-
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
-
setTimer
- Specified by:
setTimer
in interfaceSimpleStat
-
reset
public void reset()- Specified by:
reset
in interfaceSimpleStat
-