Interface MethodStatisticsLogger
-
- All Known Implementing Classes:
MethodStatisticsLoggerImpl
public interface MethodStatisticsLogger
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default void
duration(long fromTimestamp)
Calculate lenght of time bewteen current time and provided timedefault long
getAvgExecutionTime()
default long
getFailedInvocationCnt()
default long
getInvocationCnt()
default long
getTotalExecutionTime()
default void
incFailureCnt()
Count reported failure of method invocationdefault void
reset()
Reinitialize statisticsdefault long
timestamp()
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()
-
-