Interface ContainerAwareBatchErrorHandler

    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      default void handle​(java.lang.Exception thrownException, org.apache.kafka.clients.consumer.ConsumerRecords<?,​?> data, org.apache.kafka.clients.consumer.Consumer<?,​?> consumer)
      Handle the exception.
      void handle​(java.lang.Exception thrownException, org.apache.kafka.clients.consumer.ConsumerRecords<?,​?> data, org.apache.kafka.clients.consumer.Consumer<?,​?> consumer, MessageListenerContainer container)
      Handle the exception.
      default void handle​(java.lang.Exception thrownException, org.apache.kafka.clients.consumer.ConsumerRecords<?,​?> data, org.apache.kafka.clients.consumer.Consumer<?,​?> consumer, MessageListenerContainer container, java.lang.Runnable invokeListener)
      Handle the exception.
    • Method Detail

      • handle

        default void handle​(java.lang.Exception thrownException,
                            org.apache.kafka.clients.consumer.ConsumerRecords<?,​?> data,
                            org.apache.kafka.clients.consumer.Consumer<?,​?> consumer)
        Description copied from interface: GenericErrorHandler
        Handle the exception.
        Specified by:
        handle in interface ConsumerAwareBatchErrorHandler
        Specified by:
        handle in interface GenericErrorHandler<org.apache.kafka.clients.consumer.ConsumerRecords<?,​?>>
        Parameters:
        thrownException - The exception.
        data - the data.
        consumer - the consumer.
      • handle

        void handle​(java.lang.Exception thrownException,
                    org.apache.kafka.clients.consumer.ConsumerRecords<?,​?> data,
                    org.apache.kafka.clients.consumer.Consumer<?,​?> consumer,
                    MessageListenerContainer container)
        Description copied from interface: BatchErrorHandler
        Handle the exception.
        Specified by:
        handle in interface BatchErrorHandler
        Specified by:
        handle in interface ConsumerAwareBatchErrorHandler
        Parameters:
        thrownException - the exception.
        data - the consumer records.
        consumer - the consumer.
        container - the container.
      • handle

        default void handle​(java.lang.Exception thrownException,
                            org.apache.kafka.clients.consumer.ConsumerRecords<?,​?> data,
                            org.apache.kafka.clients.consumer.Consumer<?,​?> consumer,
                            MessageListenerContainer container,
                            java.lang.Runnable invokeListener)
        Handle the exception.
        Specified by:
        handle in interface BatchErrorHandler
        Parameters:
        thrownException - the exception.
        data - the consumer records.
        consumer - the consumer.
        container - the container.
        invokeListener - a callback to re-invoke the listener.
        Since:
        2.3.7