Package org.infinispan.commons.stat
Interface SimpleStat
-
- All Known Implementing Classes:
DefaultSimpleStat
,SimpleStateWithTimer
public interface SimpleStat
A 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 SimpleStat
EMPTY
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default long
count()
default long
getAverage(long defaultValue)
default long
getMax(long defaultValue)
default long
getMin(long defaultValue)
default boolean
isEmpty()
default void
record(long value)
default void
reset()
default void
setTimer(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()
-
-