Interface ContainerAwareErrorHandler

    • Method Detail

      • handle

        default void handle​(java.lang.Exception thrownException,
                            java.util.List<org.apache.kafka.clients.consumer.ConsumerRecord<?,​?>> records,
                            org.apache.kafka.clients.consumer.Consumer<?,​?> consumer)
        Description copied from interface: RemainingRecordsErrorHandler
        Handle the exception. The failed record is the first in the list.
        Specified by:
        handle in interface RemainingRecordsErrorHandler
        Parameters:
        thrownException - the exception.
        records - the remaining records including the one that failed.
        consumer - the consumer.
      • handle

        void handle​(java.lang.Exception thrownException,
                    java.util.List<org.apache.kafka.clients.consumer.ConsumerRecord<?,​?>> records,
                    org.apache.kafka.clients.consumer.Consumer<?,​?> consumer,
                    MessageListenerContainer container)
        Description copied from interface: ErrorHandler
        Handle the exception.
        Specified by:
        handle in interface ConsumerAwareErrorHandler
        Specified by:
        handle in interface ErrorHandler
        Specified by:
        handle in interface RemainingRecordsErrorHandler
        Parameters:
        thrownException - the exception.
        records - the remaining records including the one that failed.
        consumer - the consumer.
        container - the container.