javax.batch.api.chunk.listener

## Interface RetryReadListener

-     public interface RetryReadListener

  RetryReadListener intercepts retry processing for an ItemReader.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `onRetryReadException(Exception ex)` The onRetryReadException method receives control when a retryable exception is thrown from an ItemReader readItem method.

- - ### Method Detail

    - #### onRetryReadException

          void onRetryReadException(Exception ex)
                                    throws Exception

      The onRetryReadException method receives control when a retryable exception is thrown from an ItemReader readItem method. This method receives the exception as input. This method receives control in the same checkpoint scope as the ItemReader. If this method throws a an exception, the job ends in the FAILED state.
      Parameters:
        `ex` - specifies the exception thrown by the item reader.
      Throws:
        `Exception` - is thrown if an error occurs.

Copyright © 1996-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.