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
     
  • Method Summary

    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)
     

    Methods inherited from class org.springframework.retry.listener.RetryListenerSupport

    open

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 interface org.springframework.retry.RetryListener
      Overrides:
      close in class org.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 interface org.springframework.retry.RetryListener
      Overrides:
      onError in class org.springframework.retry.listener.RetryListenerSupport