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 SummaryFields inherited from interface org.infinispan.commons.stat.TimerTrackerNO_OP
- 
Constructor SummaryConstructors
- 
Method Summary
- 
Constructor Details- 
SimpleTimerTrackerpublic SimpleTimerTracker()
 
- 
- 
Method Details- 
updateDescription copied from interface:TimerTrackerAdds a record.- Specified by:
- updatein interface- TimerTracker
- Parameters:
- duration- The duration value.
 
- 
updateDescription copied from interface:TimerTrackerAdds a record.- Specified by:
- updatein interface- TimerTracker
- Parameters:
- value- The value.
- timeUnit- The- TimeUnitof the value.
 
- 
countpublic long count()- Specified by:
- countin interface- TimerTracker
- Returns:
- The amount of records.
 
- 
totalTimepublic double totalTime()
 
-