Interface KafkaProducerFactory
-
- All Known Implementing Classes:
DefaultKafkaProducerFactory
public interface KafkaProducerFactoryCreates Apache KafkaProducerinstances.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.apache.kafka.clients.producer.Producer<byte[],byte[]>newKafkaProducer(Properties config)Creates a new Kafka Producer from the given configuration properties.
-
-
-
Method Detail
-
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.
-
-