@Factory
public class KafkaProducerFactory
extends java.lang.Object
Producer
instances.Constructor and Description |
---|
KafkaProducerFactory() |
Modifier and Type | Method and Description |
---|---|
<K,V> org.apache.kafka.clients.producer.KafkaProducer<K,V> |
createProducer(AbstractKafkaProducerConfiguration<K,V> producerConfiguration)
Creates a new
KafkaProducer for the given configuration. |
@Prototype public <K,V> org.apache.kafka.clients.producer.KafkaProducer<K,V> createProducer(@Parameter AbstractKafkaProducerConfiguration<K,V> producerConfiguration)
KafkaProducer
for the given configuration.K
- The key typeV
- The value typeproducerConfiguration
- The producer configuration