|
||||||||||
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 | ||
---|---|---|
|
close(RetryContext context,
RetryCallback<T> callback,
Throwable throwable)
Called after the final attempt (successful or not). |
|
|
onError(RetryContext context,
RetryCallback<T> callback,
Throwable throwable)
Called after every unsuccessful attempt at a retry. |
|
|
open(RetryContext context,
RetryCallback<T> 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 <T> void close(RetryContext context, RetryCallback<T> 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 <T> void onError(RetryContext context, RetryCallback<T> 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 <T> boolean open(RetryContext context, RetryCallback<T> 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 |