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, registerThrowable
public boolean canRetry(RetryContext context)
canRetry
in interface RetryPolicy
canRetry
in class NeverRetryPolicy
context
- the current retry statusRetryPolicy.canRetry(org.springframework.retry.RetryContext)
Copyright © 2018 SpringSource. All rights reserved.