Interface OnError


public interface OnError
  • Method Summary

    Modifier and Type
    Method
    Description
    All errors during streaming will be ignored (but will be logged with a WARN log level).
    onError(Consumer<Throwable> errorHandler)
    The provided Consumer will be invoked when an error occurs during streaming.
  • Method Details

    • onError

      OnStart onError(Consumer<Throwable> errorHandler)
      The provided Consumer will be invoked when an error occurs during streaming.
      Parameters:
      errorHandler - lambda that will be invoked when an error occurs
      Returns:
      the next step of the step-builder
    • ignoreErrors

      OnStart ignoreErrors()
      All errors during streaming will be ignored (but will be logged with a WARN log level).
      Returns:
      the next step of the step-builder