|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.retry.policy.NeverRetryPolicy
public class NeverRetryPolicy
A RetryPolicy that allows the first attempt but never permits a
retry. Also be used as a base class for other policies, e.g. for test
purposes as a stub.
| Constructor Summary | |
|---|---|
NeverRetryPolicy()
|
|
| Method Summary | |
|---|---|
boolean |
canRetry(RetryContext context)
Returns false after the first exception. |
void |
close(RetryContext context)
Do nothing. |
RetryContext |
open(RetryContext parent)
Return a context that can respond to early termination requests, but does nothing else. |
void |
registerThrowable(RetryContext context,
java.lang.Throwable throwable)
Make the throwable available for downstream use through the context. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NeverRetryPolicy()
| Method Detail |
|---|
public boolean canRetry(RetryContext context)
canRetry in interface RetryPolicycontext - the current retry status
RetryPolicy.canRetry(org.springframework.retry.RetryContext)public void close(RetryContext context)
close in interface RetryPolicycontext - a retry status created by the
RetryPolicy.open(RetryContext) method of this manager.RetryPolicy.close(org.springframework.retry.RetryContext)public RetryContext open(RetryContext parent)
open in interface RetryPolicyparent - the parent context if we are in a nested retry.
RetryContext object specific to this manager.RetryPolicy.open(RetryContext)
public void registerThrowable(RetryContext context,
java.lang.Throwable throwable)
registerThrowable in interface RetryPolicycontext - the current status object.RetryPolicy.registerThrowable(org.springframework.retry.RetryContext,
Throwable)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||