Class RetryListenerImpl

  • All Implemented Interfaces:
    org.springframework.retry.RetryListener

    @Component
    public class RetryListenerImpl
    extends Object
    implements org.springframework.retry.RetryListener
    The Class RetryListenerImpl - to log failed invocations.
    Author:
    Loganathan Sekar
    • Constructor Detail

      • RetryListenerImpl

        public RetryListenerImpl()
    • Method Detail

      • open

        public <T,​E extends Throwable> boolean open​(org.springframework.retry.RetryContext context,
                                                          org.springframework.retry.RetryCallback<T,​E> callback)
        Specified by:
        open in interface org.springframework.retry.RetryListener
      • close

        public <T,​E extends Throwable> void close​(org.springframework.retry.RetryContext context,
                                                        org.springframework.retry.RetryCallback<T,​E> callback,
                                                        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