Interface ConsumerAwareErrorHandler

    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      default void handle​(java.lang.Exception thrownException, java.util.List<org.apache.kafka.clients.consumer.ConsumerRecord<?,​?>> 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.ConsumerRecord<?,​?> data)
      Handle the exception.
      void handle​(java.lang.Exception thrownException, org.apache.kafka.clients.consumer.ConsumerRecord<?,​?> data, org.apache.kafka.clients.consumer.Consumer<?,​?> consumer)
      Handle the exception.
    • Method Detail

      • handle

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

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

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