org.springframework.batch.retry
Interface RetryStatistics


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
 int getAbortCount()
          Get the number of times a block failed to complete successfully, even after retry.
 int getCompleteCount()
           
 int getErrorCount()
          Get the number of errors detected, whether or not they resulted in a retry.
 String getName()
          Get an identifier for the retry block for reporting purposes.
 int getStartedCount()
          Get the number of times a retry block has been entered, irrespective of how many times the operation was retried.
 

Method Detail

getCompleteCount

int getCompleteCount()
Returns:
the number of completed retry attempts (successful or not).

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.

getName

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

Returns:
an identifier for the block.


Copyright © 2009 SpringSource. All Rights Reserved.