Interface ListenerInvokingBatchErrorHandler

    • Method Detail

      • handle

        void handle​(java.lang.Exception thrownException,
                    org.apache.kafka.clients.consumer.ConsumerRecords<?,​?> records,
                    org.apache.kafka.clients.consumer.Consumer<?,​?> consumer,
                    MessageListenerContainer container,
                    java.lang.Runnable invokeListener)
        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.