Interface VertxKafkaClientFactory

  • All Known Implementing Classes:
    DefaultVertxKafkaClientFactory

    public interface VertxKafkaClientFactory
    Defines the factory that this component uses to create vertx based and instances.
    • 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 the KafkaConsumer class.
        Parameters:
        vertx - vertx instance
        config - 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 the KafkaProducer class.
        Parameters:
        vertx - vertx instance
        config - 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