Add statistics support via a listener

This commit is contained in:
Dave Syer
2016-06-21 12:07:35 +01:00
parent 8fcd854365
commit 6c2cc11264
10 changed files with 622 additions and 8 deletions

View File

@@ -26,7 +26,7 @@ package org.springframework.retry;
public interface RetryStatistics {
/**
* @return the number of completed retry attempts (successful or not).
* @return the number of completed successful retry attempts.
*/
int getCompleteCount();
@@ -54,6 +54,13 @@ public interface RetryStatistics {
*/
int getAbortCount();
/**
* Get the number of times a recovery callback was applied.
*
* @return the number of recovered attempts.
*/
int getRecoveryCount();
/**
* Get an identifier for the retry block for reporting purposes.
*