|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.batch.retry.listener.RetryListenerSupport
public class RetryListenerSupport
Empty method implementation of RetryListener
.
Constructor Summary | |
---|---|
RetryListenerSupport()
|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RetryListenerSupport()
Method Detail |
---|
public void close(RetryContext context, RetryCallback callback, Throwable throwable)
RetryListener
close
in interface RetryListener
context
- the current RetryContext
.callback
- the current RetryCallback
.throwable
- the last exception that was thrown by the callback.public void onError(RetryContext context, RetryCallback callback, Throwable throwable)
RetryListener
onError
in interface RetryListener
context
- the current RetryContext
.callback
- the current RetryCallback
.throwable
- the last exception that was thrown by the callback.public boolean open(RetryContext context, RetryCallback callback)
RetryListener
RetryOperations
. The whole retry can be vetoed by returning
false from this method, in which case a TerminatedRetryException
will be thrown.
open
in interface RetryListener
context
- the current RetryContext
.callback
- the current RetryCallback
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |