|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.batch.retry.policy.CompositeRetryPolicy
public class CompositeRetryPolicy
A RetryPolicy
that composes a list of other policies and delegates
calls to them in order.
Constructor Summary | |
---|---|
CompositeRetryPolicy()
|
Method Summary | |
---|---|
boolean |
canRetry(RetryContext context)
Delegate to the policies that were in operation when the context was created. |
void |
close(RetryContext context)
Delegate to the policies that were in operation when the context was created. |
RetryContext |
open(RetryContext parent)
Creates a new context that copies the existing policies and keeps a list of the contexts from each one. |
void |
registerThrowable(RetryContext context,
Throwable throwable)
Delegate to the policies that were in operation when the context was created. |
void |
setPolicies(RetryPolicy[] policies)
Setter for policies. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CompositeRetryPolicy()
Method Detail |
---|
public void setPolicies(RetryPolicy[] policies)
policies
- public boolean canRetry(RetryContext context)
canRetry
in interface RetryPolicy
context
- the current retry status
RetryPolicy.canRetry(org.springframework.batch.retry.RetryContext)
public void close(RetryContext context)
close
in interface RetryPolicy
context
- a retry status created by the
RetryPolicy.open(RetryContext)
method of this manager.RetryPolicy.close(org.springframework.batch.retry.RetryContext)
public RetryContext open(RetryContext parent)
open
in interface RetryPolicy
parent
- the parent context if we are in a nested retry.
RetryContext
object specific to this manager.RetryPolicy.open(RetryContext)
public void registerThrowable(RetryContext context, Throwable throwable)
registerThrowable
in interface RetryPolicy
context
- the current status object.RetryPolicy.close(org.springframework.batch.retry.RetryContext)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |