Interface ListenerInvokingBatchErrorHandler

All Superinterfaces:
BatchErrorHandler, ConsumerAwareBatchErrorHandler, ContainerAwareBatchErrorHandler, GenericErrorHandler<org.apache.kafka.clients.consumer.ConsumerRecords<?,?>>
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@Deprecated(since="2.8", forRemoval=true) @FunctionalInterface public interface ListenerInvokingBatchErrorHandler extends ContainerAwareBatchErrorHandler
Deprecated, for removal: This API element is subject to removal in a future version.
in favor of CommonErrorHandler.
A batch error handler that is capable of invoking the listener during error handling.
Since:
2.3.7
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    handle(Exception thrownException, org.apache.kafka.clients.consumer.ConsumerRecords<?,?> data, org.apache.kafka.clients.consumer.Consumer<?,?> consumer, MessageListenerContainer container)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Handle the exception.
    void
    handle(Exception thrownException, org.apache.kafka.clients.consumer.ConsumerRecords<?,?> records, org.apache.kafka.clients.consumer.Consumer<?,?> consumer, MessageListenerContainer container, Runnable invokeListener)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Handle the exception.

    Methods inherited from interface org.springframework.kafka.listener.ConsumerAwareBatchErrorHandler

    handle

    Methods inherited from interface org.springframework.kafka.listener.ContainerAwareBatchErrorHandler

    handle

    Methods inherited from interface org.springframework.kafka.listener.GenericErrorHandler

    clearThreadState, isAckAfterHandle, setAckAfterHandle
  • Method Details

    • handle

      default void handle(Exception thrownException, @Nullable org.apache.kafka.clients.consumer.ConsumerRecords<?,?> data, org.apache.kafka.clients.consumer.Consumer<?,?> consumer, MessageListenerContainer container)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: BatchErrorHandler
      Handle the exception.
      Specified by:
      handle in interface BatchErrorHandler
      Specified by:
      handle in interface ConsumerAwareBatchErrorHandler
      Specified by:
      handle in interface ContainerAwareBatchErrorHandler
      Parameters:
      thrownException - the exception.
      data - the consumer records.
      consumer - the consumer.
      container - the container.
    • handle

      void handle(Exception thrownException, @Nullable org.apache.kafka.clients.consumer.ConsumerRecords<?,?> records, org.apache.kafka.clients.consumer.Consumer<?,?> consumer, MessageListenerContainer container, Runnable invokeListener)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: ContainerAwareBatchErrorHandler
      Handle the exception.
      Specified by:
      handle in interface BatchErrorHandler
      Specified by:
      handle in interface ContainerAwareBatchErrorHandler
      Parameters:
      thrownException - the exception.
      records - the consumer records.
      consumer - the consumer.
      container - the container.
      invokeListener - a callback to re-invoke the listener.