public interface ErrorHandler extends GenericErrorHandler<org.apache.kafka.clients.consumer.ConsumerRecord<?,?>>
MessageListener.| Modifier and Type | Method and Description |
|---|---|
default void |
clearThreadState()
Optional method to clear thread state; will be called just before a consumer
thread terminates.
|
default 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)
Handle the exception.
|
handle, handledefault 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)
thrownException - the exception.records - the remaining records including the one that failed.consumer - the consumer.container - the container.default void clearThreadState()