public class StatisticsListener extends RetryListenerSupport
| Constructor and Description |
|---|
StatisticsListener(StatisticsRepository repository) |
| Modifier and Type | Method and Description |
|---|---|
<T,E extends Throwable> |
close(RetryContext context,
RetryCallback<T,E> callback,
Throwable throwable)
Called after the final attempt (successful or not).
|
<T,E extends Throwable> |
onError(RetryContext context,
RetryCallback<T,E> callback,
Throwable throwable)
Called after every unsuccessful attempt at a retry.
|
openpublic StatisticsListener(StatisticsRepository repository)
public <T,E extends Throwable> void close(RetryContext context, RetryCallback<T,E> callback, Throwable throwable)
RetryListenerclose in interface RetryListenerclose in class RetryListenerSupportT - the return valueE - the exception typecontext - the current RetryContext.callback - the current RetryCallback.throwable - the last exception that was thrown by the callback.public <T,E extends Throwable> void onError(RetryContext context, RetryCallback<T,E> callback, Throwable throwable)
RetryListeneronError in interface RetryListeneronError in class RetryListenerSupportT - the return valueE - the exception to throwcontext - the current RetryContext.callback - the current RetryCallback.throwable - the last exception that was thrown by the callback.Copyright © 2022 SpringSource. All rights reserved.