Class AbstractKafkaRecordProcessorFacade

java.lang.Object
org.apache.camel.component.kafka.consumer.support.AbstractKafkaRecordProcessorFacade
All Implemented Interfaces:
KafkaRecordProcessorFacade
Direct Known Subclasses:
KafkaRecordBatchingProcessorFacade, KafkaRecordStreamingProcessorFacade

public abstract class AbstractKafkaRecordProcessorFacade extends Object implements KafkaRecordProcessorFacade
Common code for processing consumer records retrieved from Kafka
  • Field Details

  • Constructor Details

  • Method Details

    • isStopping

      protected boolean isStopping()
      Whether the the Camel consumer is stopping
      Returns:
      true if is stopping or false otherwise
    • logRecordsInPartition

      protected void logRecordsInPartition(List<org.apache.kafka.clients.consumer.ConsumerRecord<Object,Object>> partitionRecords, org.apache.kafka.common.TopicPartition partition)
      Utility to log record information along with partition
      Parameters:
      partitionRecords - records from partition
      partition - topic/partition information
    • logRecords

      protected void logRecords(org.apache.kafka.clients.consumer.ConsumerRecords<Object,Object> allRecords)
      Utility to log record information
      Parameters:
      allRecords - records retrieved from Kafka
    • logRecord

      protected void logRecord(org.apache.kafka.clients.consumer.ConsumerRecord<Object,Object> consumerRecord)