Interface MethodStatisticsLogger

    • 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()