@FunctionalInterface public interface ListenerInvokingBatchErrorHandler extends ContainerAwareBatchErrorHandler
Modifier and Type | Method and Description |
---|---|
default 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.
|
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)
Handle the exception.
|
handle
handle
clearThreadState, isAckAfterHandle
default void handle(java.lang.Exception thrownException, org.apache.kafka.clients.consumer.ConsumerRecords<?,?> data, org.apache.kafka.clients.consumer.Consumer<?,?> consumer, MessageListenerContainer container)
BatchErrorHandler
handle
in interface BatchErrorHandler
handle
in interface ConsumerAwareBatchErrorHandler
handle
in interface ContainerAwareBatchErrorHandler
thrownException
- the exception.data
- the consumer records.consumer
- the consumer.container
- the container.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)
ContainerAwareBatchErrorHandler
handle
in interface BatchErrorHandler
handle
in interface ContainerAwareBatchErrorHandler
thrownException
- the exception.records
- the consumer records.consumer
- the consumer.container
- the container.invokeListener
- a callback to re-invoke the listener.