K
- key class of the recordV
- value class of the record@FunctionalInterface
public interface ErrorHandler<K,V>
Modifier and Type | Method and Description |
---|---|
boolean |
handleError(org.apache.kafka.clients.consumer.ConsumerRecord<K,V> record,
java.lang.RuntimeException e,
org.apache.kafka.clients.consumer.Consumer<K,V> consumer)
handling error that happenes during processing of the consumer record
|
boolean handleError(org.apache.kafka.clients.consumer.ConsumerRecord<K,V> record, java.lang.RuntimeException e, org.apache.kafka.clients.consumer.Consumer<K,V> consumer)
record
- consumer record that caused the errore
- error that occuredconsumer
- consumer that read the record