public class AlwaysRetryPolicy extends NeverRetryPolicy
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.| Constructor and Description |
|---|
AlwaysRetryPolicy() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canRetry(RetryContext context)
Always returns true.
|
close, open, registerThrowablepublic boolean canRetry(RetryContext context)
canRetry in interface RetryPolicycanRetry in class NeverRetryPolicycontext - the current retry statusRetryPolicy.canRetry(org.springframework.retry.RetryContext)Copyright © 2018 SpringSource. All rights reserved.