Interface MethodStatisticsLogger
- All Known Implementing Classes:
MethodStatisticsLoggerImpl
public interface MethodStatisticsLogger
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidduration(long fromTimestamp) Calculate lenght of time bewteen current time and provided timedefault longdefault longdefault longdefault longdefault voidCount reported failure of method invocationdefault voidreset()Reinitialize statisticsdefault longRetrieve current time
-
Method Details
-
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()
-