Simple retry policy that retries a fixed number of times for a set of named
exceptions (and subclasses). The number of attempts includes the initial try,
retryTemplate = new RetryTemplate(new SimpleRetryPolicy(3));
will execute the callback at least once, and as many as 3 times.
- Dave Syer
- Rob Harrop
The default limit to the number of attempts for a new policy.
with the specified number of retry
Setter for retry attempts.
retryAttempts the number of attempts before a retry becomes
The maximum number of retry attempts before failure.
- the maximum number of attempts
Test for retryable operation based on the status.
Update the status with another attempted retry and the latest exception.
Get a status object that can be used to track the current operation
according to this policy. Has to be aware of the latest exception and the
number of attempts.
Delegates to an exception classifier.
- true if this exception or its ancestors have been registered as