Interface RetryProcessListener



  • public interface RetryProcessListener
    RetryProcessListener intercepts retry processing for an ItemProcessor.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void onRetryProcessException​(java.lang.Object item, java.lang.Exception ex)
      The onRetryProcessException method receives control when a retryable exception is thrown from an ItemProcessor processItem method.
    • Method Detail

      • onRetryProcessException

        void onRetryProcessException​(java.lang.Object item,
                                     java.lang.Exception ex)
                              throws java.lang.Exception
        The onRetryProcessException method receives control when a retryable exception is thrown from an ItemProcessor processItem method. This method receives the exception and the item being processed as inputs. This method receives control in same checkpoint scope as the ItemProcessor. If this method throws a an exception, the job ends in the FAILED state.
        Parameters:
        item - specifies the item passed to the ItemProcessor.
        ex - specifies the exception thrown by the ItemProcessor.
        Throws:
        java.lang.Exception - is thrown if an error occurs.