Package org.infinispan.commons.stat
Interface SimpleStat
-
- All Known Implementing Classes:
DefaultSimpleStat,SimpleStateWithTimer
public interface SimpleStatA simple statistic recorder that computes the average, minimum and maximum value observed.- Since:
- 10.0
- Author:
- Pedro Ruivo
-
-
Field Summary
Fields Modifier and Type Field Description static SimpleStatEMPTY
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default longcount()default longgetAverage(long defaultValue)default longgetMax(long defaultValue)default longgetMin(long defaultValue)default booleanisEmpty()default voidrecord(long value)default voidreset()default voidsetTimer(TimerTracker timer)
-
-
-
Field Detail
-
EMPTY
static final SimpleStat EMPTY
-
-
Method Detail
-
record
default void record(long value)
-
getMin
default long getMin(long defaultValue)
-
getMax
default long getMax(long defaultValue)
-
getAverage
default long getAverage(long defaultValue)
-
count
default long count()
-
isEmpty
default boolean isEmpty()
-
setTimer
default void setTimer(TimerTracker timer)
-
reset
default void reset()
-
-