Interface RetryStatistics

All Known Subinterfaces:
MutableRetryStatistics
All Known Implementing Classes:
DefaultRetryStatistics, ExponentialAverageRetryStatistics

public interface RetryStatistics
Interface for statistics reporting of retry attempts. Counts the number of retry attempts, successes, errors (including retries), and aborts.
Author:
Dave Syer
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Get the number of times a block failed to complete successfully, even after retry.
    int
     
    int
    Get the number of errors detected, whether or not they resulted in a retry.
    Get an identifier for the retry block for reporting purposes.
    int
    Get the number of times a recovery callback was applied.
    int
    Get the number of times a retry block has been entered, irrespective of how many times the operation was retried.
  • Method Details

    • getCompleteCount

      int getCompleteCount()
      Returns:
      the number of completed successful retry attempts.
    • getStartedCount

      int getStartedCount()
      Get the number of times a retry block has been entered, irrespective of how many times the operation was retried.
      Returns:
      the number of retry blocks started.
    • getErrorCount

      int getErrorCount()
      Get the number of errors detected, whether or not they resulted in a retry.
      Returns:
      the number of errors detected.
    • getAbortCount

      int getAbortCount()
      Get the number of times a block failed to complete successfully, even after retry.
      Returns:
      the number of retry attempts that failed overall.
    • getRecoveryCount

      int getRecoveryCount()
      Get the number of times a recovery callback was applied.
      Returns:
      the number of recovered attempts.
    • getName

      String getName()
      Get an identifier for the retry block for reporting purposes.
      Returns:
      an identifier for the block.