Interface ItemReadListener<T>

All Superinterfaces:
All Known Implementing Classes:
CompositeItemReadListener, DefaultItemFailureHandler, ItemListenerSupport, MulticasterBatchListener, StepListenerSupport

public interface ItemReadListener<T> extends StepListener
Listener interface around the reading of an item.
Lucas Ward, Mahmoud Ben Hassine
  • Method Details

    • beforeRead

      default void beforeRead()
      Called before
    • afterRead

      default void afterRead(T item)
      Called after This method is called only for actual items (that is, it is not called when the reader returns null).
      item - returned from read()
    • onReadError

      default void onReadError(Exception ex)
      Called if an error occurs while trying to read.
      ex - thrown from ItemReader