|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RetryState
Stateful retry is characterised by having to recognise the items that are
being processed, so this interface is used primarily to provide a cache key in
between failed attempts. It also provides a hints to the
RetryOperations
for optimisations to do with avoidable cache hits and
switching to stateless retry if a rollback is not needed.
Method Summary | |
---|---|
java.lang.Object |
getKey()
Key representing the state for a retry attempt. |
boolean |
isForceRefresh()
Indicate whether a cache lookup can be avoided. |
boolean |
rollbackFor(java.lang.Throwable exception)
Check whether this exception requires a rollback. |
Method Detail |
---|
java.lang.Object getKey()
boolean isForceRefresh()
boolean rollbackFor(java.lang.Throwable exception)
exception
- the exception that caused a retry attempt to fail
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |