Add statistics support via a listener
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user