@FunctionalInterface public interface ConsumerAwareErrorHandler extends ErrorHandler
Modifier and Type | Method and Description |
---|---|
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.
|
default void handle(java.lang.Exception thrownException, org.apache.kafka.clients.consumer.ConsumerRecord<?,?> data)
GenericErrorHandler
handle
in interface GenericErrorHandler<org.apache.kafka.clients.consumer.ConsumerRecord<?,?>>
thrownException
- The exception.data
- the data.void handle(java.lang.Exception thrownException, org.apache.kafka.clients.consumer.ConsumerRecord<?,?> data, org.apache.kafka.clients.consumer.Consumer<?,?> consumer)
GenericErrorHandler
handle
in interface GenericErrorHandler<org.apache.kafka.clients.consumer.ConsumerRecord<?,?>>
thrownException
- The exception.data
- the data.consumer
- the consumer.