Class RecordValueWithExceptionHandler<K,V>
java.lang.Object
ru.tinkoff.kora.kafka.common.containers.handlers.impl.RecordValueWithExceptionHandler<K,V>
- All Implemented Interfaces:
BaseKafkaRecordsHandler<K,V>
public class RecordValueWithExceptionHandler<K,V>
extends Object
implements BaseKafkaRecordsHandler<K,V>
-
Constructor Summary
ConstructorsConstructorDescriptionRecordValueWithExceptionHandler(KafkaConsumerTelemetry<K, V> telemetry, KafkaRecordValueWithExceptionHandler<V> handler) -
Method Summary
-
Constructor Details
-
RecordValueWithExceptionHandler
public RecordValueWithExceptionHandler(KafkaConsumerTelemetry<K, V> telemetry, KafkaRecordValueWithExceptionHandler<V> handler)
-
-
Method Details
-
handle
public void handle(org.apache.kafka.clients.consumer.ConsumerRecords<K, V> records, org.apache.kafka.clients.consumer.Consumer<K, V> consumer, boolean commitAllowed) - Specified by:
handlein interfaceBaseKafkaRecordsHandler<K,V> - Parameters:
records- consumed records to handle by kafka consumerconsumer- consumer that consumer recordscommitAllowed- if true that commit is allowed for consumer
-