Package ubic.gemma.persistence.retry
Class RetryLogger
java.lang.Object
org.springframework.retry.listener.RetryListenerSupport
ubic.gemma.persistence.retry.RetryLogger
- All Implemented Interfaces:
org.springframework.retry.RetryListener
@Component
public class RetryLogger
extends org.springframework.retry.listener.RetryListenerSupport
Provide logging when an operation has failed and is being retried. This would not be needed if there was better
logging control over the default RetryContext.
- Author:
- paul
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> void
close
(org.springframework.retry.RetryContext context, org.springframework.retry.RetryCallback<T> callback, Throwable throwable) <T> void
onError
(org.springframework.retry.RetryContext context, org.springframework.retry.RetryCallback<T> callback, Throwable throwable) Methods inherited from class org.springframework.retry.listener.RetryListenerSupport
open
-
Constructor Details
-
RetryLogger
public RetryLogger()
-
-
Method Details
-
close
public <T> void close(org.springframework.retry.RetryContext context, org.springframework.retry.RetryCallback<T> callback, @Nullable Throwable throwable) - Specified by:
close
in interfaceorg.springframework.retry.RetryListener
- Overrides:
close
in classorg.springframework.retry.listener.RetryListenerSupport
-
onError
public <T> void onError(org.springframework.retry.RetryContext context, org.springframework.retry.RetryCallback<T> callback, Throwable throwable) - Specified by:
onError
in interfaceorg.springframework.retry.RetryListener
- Overrides:
onError
in classorg.springframework.retry.listener.RetryListenerSupport
-