public interface IConsumer<T>
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    consume(List<T> data)
     
    default void
    init(Properties properties)
     
    default void
    Notify the implementation, if there is nothing fetched from the queue.
    void
    onError(List<T> data, Throwable t)
     
    default void
     
  • Method Details

    • init

      default void init(Properties properties)
    • consume

      void consume(List<T> data)
    • onError

      void onError(List<T> data, Throwable t)
    • onExit

      default void onExit()
    • nothingToConsume

      default void nothingToConsume()
      Notify the implementation, if there is nothing fetched from the queue. This could be used as a timer to trigger reaction if the queue has no element.