Class QuarkusKafkaClientFactory

java.lang.Object
org.apache.camel.component.kafka.DefaultKafkaClientFactory
org.apache.camel.quarkus.component.kafka.QuarkusKafkaClientFactory
All Implemented Interfaces:
org.apache.camel.component.kafka.KafkaClientFactory

public class QuarkusKafkaClientFactory extends org.apache.camel.component.kafka.DefaultKafkaClientFactory
Custom KafkaClientFactory to enable Kafka configuration properties discovered by the Quarkus Kubernetes Service Binding extension to be merged with those configured from the Camel Kafka component and endpoint URI options.
  • Constructor Details

    • QuarkusKafkaClientFactory

      public QuarkusKafkaClientFactory(Map<String,Object> quarkusKafkaConfiguration)
  • Method Details

    • getProducer

      public org.apache.kafka.clients.producer.Producer getProducer(Properties camelKafkaProperties)
      Specified by:
      getProducer in interface org.apache.camel.component.kafka.KafkaClientFactory
      Overrides:
      getProducer in class org.apache.camel.component.kafka.DefaultKafkaClientFactory
    • getConsumer

      public org.apache.kafka.clients.consumer.Consumer getConsumer(Properties camelKafkaProperties)
      Specified by:
      getConsumer in interface org.apache.camel.component.kafka.KafkaClientFactory
      Overrides:
      getConsumer in class org.apache.camel.component.kafka.DefaultKafkaClientFactory
    • getBrokers

      public String getBrokers(org.apache.camel.component.kafka.KafkaConfiguration configuration)
      Specified by:
      getBrokers in interface org.apache.camel.component.kafka.KafkaClientFactory
      Overrides:
      getBrokers in class org.apache.camel.component.kafka.DefaultKafkaClientFactory
    • mergeConfiguration

      public void mergeConfiguration(Properties camelKafkaProperties)
      Merges kafka configuration properties discovered by Quarkus with those provided via the component & endpoint URI options. This behaviour can be suppressed via a configuration property.