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:TimerTrackerAdds a record.- Specified by:
updatein interfaceTimerTracker- Parameters:
duration- The duration value.
-
update
Description copied from interface:TimerTrackerAdds a record.- Specified by:
updatein interfaceTimerTracker- Parameters:
value- The value.timeUnit- TheTimeUnitof the value.
-
count
public long count()- Specified by:
countin interfaceTimerTracker- Returns:
- The amount of records.
-
totalTime
public double totalTime()
-