Package org.infinispan.commons.stat
Class SimpleTimerTracker
java.lang.Object
org.infinispan.commons.stat.SimpleTimerTracker
- All Implemented Interfaces:
TimerTracker
A simple implementation of
TimerTracker
that keep tracks of events and the sum of their duration.- Since:
- 15.1
-
Field Summary
Fields inherited from interface org.infinispan.commons.stat.TimerTracker
NO_OP
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
SimpleTimerTracker
public SimpleTimerTracker()
-
-
Method Details
-
update
Description copied from interface:TimerTracker
Adds a record.- Specified by:
update
in interfaceTimerTracker
- Parameters:
duration
- The duration value.
-
update
Description copied from interface:TimerTracker
Adds a record.- Specified by:
update
in interfaceTimerTracker
- Parameters:
value
- The value.timeUnit
- TheTimeUnit
of the value.
-
count
public long count()- Specified by:
count
in interfaceTimerTracker
- Returns:
- The amount of records.
-
totalTime
public double totalTime()
-