Interface VertxKafkaClientFactory
-
- All Known Implementing Classes:
DefaultVertxKafkaClientFactory
public interface VertxKafkaClientFactoryDefines the factory that this component uses to create vertx based and instances.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetBootstrapBrokers(VertxKafkaConfiguration configuration)URL of the Kafka brokers to use.<K,V>
io.vertx.kafka.client.consumer.KafkaConsumer<K,V>getVertxKafkaConsumer(io.vertx.core.Vertx vertx, Properties config)Creates a new instance of theKafkaConsumerclass.<K,V>
io.vertx.kafka.client.producer.KafkaProducer<K,V>getVertxKafkaProducer(io.vertx.core.Vertx vertx, Properties config)Creates a new instance of theKafkaProducerclass.
-
-
-
Method Detail
-
getVertxKafkaConsumer
<K,V> io.vertx.kafka.client.consumer.KafkaConsumer<K,V> getVertxKafkaConsumer(io.vertx.core.Vertx vertx, Properties config)Creates a new instance of theKafkaConsumerclass.- Parameters:
vertx- vertx instanceconfig- The consumer configs.- Returns:
- an instance of Kafka consumer.
-
getVertxKafkaProducer
<K,V> io.vertx.kafka.client.producer.KafkaProducer<K,V> getVertxKafkaProducer(io.vertx.core.Vertx vertx, Properties config)Creates a new instance of theKafkaProducerclass.- Parameters:
vertx- vertx instanceconfig- The producer configs.- Returns:
- an instance of Kafka producer.
-
getBootstrapBrokers
String getBootstrapBrokers(VertxKafkaConfiguration configuration)
URL of the Kafka brokers to use. The format is host1:port1,host2:port2, and the list can be a subset of brokers or a VIP pointing to a subset of brokers. This option is known as bootstrap.servers in the Kafka documentation.- Parameters:
configuration- the configuration
-
-