|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.batch.retry.support.DefaultRetryState
public class DefaultRetryState
Constructor Summary | |
---|---|
DefaultRetryState(Object key)
Defaults the force refresh flag (to false) and the rollback classifier (to null). |
|
DefaultRetryState(Object key,
boolean forceRefresh)
Defaults the rollback classifier to null. |
|
DefaultRetryState(Object key,
boolean forceRefresh,
Classifier<? super Throwable,Boolean> rollbackClassifier)
Create a DefaultRetryState representing the state for a new retry
attempt. |
|
DefaultRetryState(Object key,
Classifier<? super Throwable,Boolean> rollbackClassifier)
Defaults the force refresh flag to false. |
Method Summary | |
---|---|
Object |
getKey()
Key representing the state for a retry attempt. |
boolean |
isForceRefresh()
Indicate whether a cache lookup can be avoided. |
boolean |
rollbackFor(Throwable exception)
Check whether this exception requires a rollback. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DefaultRetryState(Object key, boolean forceRefresh, Classifier<? super Throwable,Boolean> rollbackClassifier)
DefaultRetryState
representing the state for a new retry
attempt.
key
- the key for the state to allow this retry attempt to be
recognisedforceRefresh
- true if the attempt is known to be a brand new state
(could not have previously failed)rollbackClassifier
- the rollback classifier to set. The rollback
classifier answers true if the exception provided should cause a
rollback.RetryOperations.execute(RetryCallback, RetryState)
,
RetryOperations.execute(RetryCallback, RecoveryCallback, RetryState)
public DefaultRetryState(Object key, Classifier<? super Throwable,Boolean> rollbackClassifier)
DefaultRetryState(Object, boolean, Classifier)
public DefaultRetryState(Object key, boolean forceRefresh)
DefaultRetryState(Object, boolean, Classifier)
public DefaultRetryState(Object key)
DefaultRetryState(Object, boolean, Classifier)
Method Detail |
---|
public Object getKey()
RetryState
getKey
in interface RetryState
public boolean isForceRefresh()
RetryState
isForceRefresh
in interface RetryState
public boolean rollbackFor(Throwable exception)
RetryState
rollbackFor
in interface RetryState
exception
- the exception that caused a retry attempt to fail
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |