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 Constructor Description RetryLogger()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <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)
-
-
-
Method Detail
-
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
-
-