Interface KafkaProducerFactory
- All Known Implementing Classes:
DefaultKafkaProducerFactory
public interface KafkaProducerFactory
Creates Apache Kafka
Producer
instances.-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.kafka.clients.producer.Producer<byte[],
byte[]> newKafkaProducer
(Properties config) Creates a new Kafka Producer from the given configuration properties.
-
Method Details
-
newKafkaProducer
Creates a new Kafka Producer from the given configuration properties.- Parameters:
config
- Kafka Producer configuration properties.- Returns:
- a new Kafka
Producer
.
-