Package org.infinispan.commons.stat
Class DefaultSimpleStat
- java.lang.Object
-
- org.infinispan.commons.stat.DefaultSimpleStat
-
- All Implemented Interfaces:
SimpleStat
- Direct Known Subclasses:
SimpleStateWithTimer
public class DefaultSimpleStat extends Object implements SimpleStat
A defaultSimpleStat
implementation.- Since:
- 10.0
- Author:
- Pedro Ruivo
-
-
Field Summary
-
Fields inherited from interface org.infinispan.commons.stat.SimpleStat
EMPTY
-
-
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)
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
-
-
-
-
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
-
setTimer
public void setTimer(TimerTracker timer)
- Specified by:
setTimer
in interfaceSimpleStat
-
reset
public void reset()
- Specified by:
reset
in interfaceSimpleStat
-
-