Package org.springframework.retry.policy
Class AlwaysRetryPolicy
java.lang.Object
org.springframework.retry.policy.NeverRetryPolicy
org.springframework.retry.policy.AlwaysRetryPolicy
- All Implemented Interfaces:
Serializable,RetryPolicy
A
RetryPolicy that always permits a retry. Can also be used as a base class for
other policies, e.g. for test purposes as a stub.- Author:
- Dave Syer
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.springframework.retry.policy.NeverRetryPolicy
close, open, registerThrowable
-
Constructor Details
-
AlwaysRetryPolicy
public AlwaysRetryPolicy()
-
-
Method Details
-
canRetry
Always returns true.- Specified by:
canRetryin interfaceRetryPolicy- Overrides:
canRetryin classNeverRetryPolicy- Parameters:
context- the current retry status- Returns:
- true if the operation can proceed
- See Also:
-