Class RetryLogger

java.lang.Object
ubic.gemma.persistence.retry.RetryLogger
All Implemented Interfaces:
org.springframework.retry.RetryListener

@Component public class RetryLogger extends Object implements org.springframework.retry.RetryListener
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, E extends Throwable>
    void
    close(org.springframework.retry.RetryContext context, org.springframework.retry.RetryCallback<T,E> callback, Throwable throwable)
     
    <T, E extends Throwable>
    void
    onError(org.springframework.retry.RetryContext context, org.springframework.retry.RetryCallback<T,E> callback, Throwable throwable)
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.springframework.retry.RetryListener

    onSuccess, open
  • Constructor Details

    • RetryLogger

      public RetryLogger()
  • Method Details

    • close

      public <T, E extends Throwable> void close(org.springframework.retry.RetryContext context, org.springframework.retry.RetryCallback<T,E> callback, @Nullable Throwable throwable)
      Specified by:
      close in interface org.springframework.retry.RetryListener
    • onError

      public <T, E extends Throwable> void onError(org.springframework.retry.RetryContext context, org.springframework.retry.RetryCallback<T,E> callback, Throwable throwable)
      Specified by:
      onError in interface org.springframework.retry.RetryListener