Package org.infinispan.commons.stat
Class SimpleStateWithTimer
- java.lang.Object
-
- org.infinispan.commons.stat.DefaultSimpleStat
-
- org.infinispan.commons.stat.SimpleStateWithTimer
-
- All Implemented Interfaces:
SimpleStat
public class SimpleStateWithTimer extends DefaultSimpleStat
ASimpleStat
implementation that also updates aTimerTracker
object.- Since:
- 13.0
- Author:
- Pedro Ruivo
-
-
Field Summary
-
Fields inherited from interface org.infinispan.commons.stat.SimpleStat
EMPTY
-
-
Constructor Summary
Constructors Constructor Description SimpleStateWithTimer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
record(long value)
void
setTimer(TimerTracker timer)
-
Methods inherited from class org.infinispan.commons.stat.DefaultSimpleStat
count, getAverage, getMax, getMin, reset
-
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
- Overrides:
record
in classDefaultSimpleStat
-
setTimer
public void setTimer(TimerTracker timer)
- Specified by:
setTimer
in interfaceSimpleStat
- Overrides:
setTimer
in classDefaultSimpleStat
-
-