Interface KafkaProducerFactory

All Known Implementing Classes:
DefaultKafkaProducerFactory

public interface KafkaProducerFactory
Creates Apache Kafka Producer instances.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.kafka.clients.producer.Producer<byte[],byte[]>
    Creates a new Kafka Producer from the given configuration properties.
  • Method Details

    • newKafkaProducer

      org.apache.kafka.clients.producer.Producer<byte[],byte[]> newKafkaProducer(Properties config)
      Creates a new Kafka Producer from the given configuration properties.
      Parameters:
      config - Kafka Producer configuration properties.
      Returns:
      a new Kafka Producer.