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
-
Method Summary
Modifier and TypeMethodDescriptiondefault 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 Details
-
EMPTY
-
-
Method Details
-
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
-
reset
default void reset()
-