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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user