OPEN - issue BATCH-409: StatefulRetryStepFactoryBean needs to co-ordinate exception handler with retry policy

http://jira.springframework.org/browse/BATCH-409

Use retryLimit and exception types instead of retry policy - in the spirit of a factory bean being easy to configure for typical use cases.
This commit is contained in:
dsyer
2008-03-06 18:14:20 +00:00
parent 1a48321d37
commit ce33690a89
5 changed files with 48 additions and 29 deletions

View File

@@ -40,7 +40,7 @@ public interface RetryPolicy {
/**
* @param context the current context.
* @return true if the policy determines that the last exception should be
* rethrown.
* re-thrown.
*/
boolean shouldRethrow(RetryContext context);
@@ -57,7 +57,7 @@ public interface RetryPolicy {
RetryContext open(RetryCallback callback);
/**
* @param status a retry status crated by the {@link #open(RetryCallback)}
* @param status a retry status created by the {@link #open(RetryCallback)}
* method of this manager.
*/
void close(RetryContext context);