Interface MethodStatisticsLogger
-
- All Known Implementing Classes:
MethodStatisticsLoggerImpl
public interface MethodStatisticsLogger
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default voidduration(long fromTimestamp)Calculate lenght of time bewteen current time and provided timedefault longgetAvgExecutionTime()default longgetFailedInvocationCnt()default longgetInvocationCnt()default longgetTotalExecutionTime()default voidincFailureCnt()Count reported failure of method invocationdefault voidreset()Reinitialize statisticsdefault longtimestamp()Retrieve current time
-
-
-
Method Detail
-
timestamp
default long timestamp()
Retrieve current time- Returns:
-
duration
default void duration(long fromTimestamp)
Calculate lenght of time bewteen current time and provided time- Parameters:
fromTimestamp-
-
incFailureCnt
default void incFailureCnt()
Count reported failure of method invocation
-
reset
default void reset()
Reinitialize statistics
-
getInvocationCnt
default long getInvocationCnt()
-
getFailedInvocationCnt
default long getFailedInvocationCnt()
-
getAvgExecutionTime
default long getAvgExecutionTime()
-
getTotalExecutionTime
default long getTotalExecutionTime()
-
-