|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface RetryListener
Interface for listener that can be used to add behaviour to a retry.
Implementations of RetryOperations can chose to issue callbacks to an
interceptor during the retry lifecycle.
| Method Summary | |
|---|---|
void |
close(RetryContext context,
RetryCallback callback,
Throwable throwable)
Called after the final attempt (successful or not). |
void |
onError(RetryContext context,
RetryCallback callback,
Throwable throwable)
Called after every unsuccessful attempt at a retry. |
boolean |
open(RetryContext context,
RetryCallback callback)
Called before the first attempt in a retry. |
| Method Detail |
|---|
boolean open(RetryContext context,
RetryCallback callback)
RetryOperations. The whole retry can be vetoed by returning
false from this method, in which case a TerminatedRetryException
will be thrown.
context - the current RetryContext.callback - the current RetryCallback.
void close(RetryContext context,
RetryCallback callback,
Throwable throwable)
context - the current RetryContext.callback - the current RetryCallback.throwable - the last exception that was thrown by the callback.
void onError(RetryContext context,
RetryCallback callback,
Throwable throwable)
context - the current RetryContext.callback - the current RetryCallback.throwable - the last exception that was thrown by the callback.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||