Package com.helger.commons.statistics
Class StatisticsHandlerKeyedTimer
- java.lang.Object
-
- com.helger.commons.statistics.AbstractStatisticsHandlerKeyedNumeric
-
- com.helger.commons.statistics.StatisticsHandlerKeyedTimer
-
- All Implemented Interfaces:
IMutableStatisticsHandlerKeyedTimer,IStatisticsHandler,IStatisticsHandlerKeyed,IStatisticsHandlerKeyedNumeric,IStatisticsHandlerKeyedTimer
@ThreadSafe public class StatisticsHandlerKeyedTimer extends AbstractStatisticsHandlerKeyedNumeric implements IMutableStatisticsHandlerKeyedTimer
Default implementation ofIMutableStatisticsHandlerKeyedTimer- Author:
- Philip Helger
-
-
Constructor Summary
Constructors Constructor Description StatisticsHandlerKeyedTimer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddTime(String sKey, long nMillis)Add a single execution time.-
Methods inherited from class com.helger.commons.statistics.AbstractStatisticsHandlerKeyedNumeric
addValue, getAllKeys, getAverage, getInvocationCount, getInvocationCount, getMax, getMin, getSum
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.helger.commons.statistics.IStatisticsHandler
getInvocationCount
-
Methods inherited from interface com.helger.commons.statistics.IStatisticsHandlerKeyed
getAllKeys, getInvocationCount
-
Methods inherited from interface com.helger.commons.statistics.IStatisticsHandlerKeyedNumeric
getAverage, getMax, getMin, getSum
-
-
-
-
Method Detail
-
addTime
public void addTime(@Nullable String sKey, @Nonnegative long nMillis)
Description copied from interface:IMutableStatisticsHandlerKeyedTimerAdd a single execution time.- Specified by:
addTimein interfaceIMutableStatisticsHandlerKeyedTimer- Parameters:
sKey- The key to be incremented.nMillis- The milli seconds it took to execute something. Should not be negative.
-
-