|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.batch.retry.backoff.StatelessBackOffPolicy
public abstract class StatelessBackOffPolicy
Simple base class for BackOffPolicy implementations that maintain no
state across invocations.
| Constructor Summary | |
|---|---|
StatelessBackOffPolicy()
|
|
| Method Summary | |
|---|---|
void |
backOff(BackOffContext backOffContext)
Delegates directly to the doBackOff() method without passing on
the BackOffContext argument which is not needed for stateless
implementations. |
protected abstract void |
doBackOff()
Sub-classes should implement this method to perform the actual back off. |
BackOffContext |
start(RetryContext status)
Returns ' null'. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StatelessBackOffPolicy()
| Method Detail |
|---|
public final void backOff(BackOffContext backOffContext)
throws BackOffInterruptedException
doBackOff() method without passing on
the BackOffContext argument which is not needed for stateless
implementations.
backOff in interface BackOffPolicyBackOffInterruptedException - if the attempt at back off is
interrupted.public BackOffContext start(RetryContext status)
null'. Subclasses can add behaviour, e.g.
initial sleep before first attempt.
start in interface BackOffPolicystatus - the current retry context, which might contain information
that we can use to decide how to proceed.
BackOffContext or 'null'.
protected abstract void doBackOff()
throws BackOffInterruptedException
BackOffInterruptedException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||