public interface KafkaClientFactory
Consumer
and Kafka Producer
instances.Modifier and Type | Method and Description |
---|---|
String |
getBrokers(KafkaConfiguration configuration)
URL of the Kafka brokers to use.
|
org.apache.kafka.clients.consumer.Consumer |
getConsumer(Properties kafkaProps)
Creates a new instance of the Kafka
Consumer class. |
org.apache.kafka.clients.producer.Producer |
getProducer(Properties kafkaProps)
Creates a new instance of the Kafka
Producer class. |
org.apache.kafka.clients.producer.Producer getProducer(Properties kafkaProps)
Producer
class.kafkaProps
- The producer configs.org.apache.kafka.clients.consumer.Consumer getConsumer(Properties kafkaProps)
Consumer
class.kafkaProps
- The consumer configs.String getBrokers(KafkaConfiguration configuration)
configuration
- the configurationApache Camel