|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.retry.policy.NeverRetryPolicy org.springframework.retry.policy.AlwaysRetryPolicy
public class AlwaysRetryPolicy
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.
Constructor Summary | |
---|---|
AlwaysRetryPolicy()
|
Method Summary | |
---|---|
boolean |
canRetry(RetryContext context)
Always returns true. |
Methods inherited from class org.springframework.retry.policy.NeverRetryPolicy |
---|
close, open, registerThrowable |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AlwaysRetryPolicy()
Method Detail |
---|
public boolean canRetry(RetryContext context)
canRetry
in interface RetryPolicy
canRetry
in class NeverRetryPolicy
context
- the current retry status
RetryPolicy.canRetry(org.springframework.retry.RetryContext)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |