public class KafkaProducerFactory<K,V> extends java.lang.Object implements Factory<org.apache.kafka.clients.producer.KafkaProducer<K,V>>
| Constructor and Description |
|---|
KafkaProducerFactory(java.util.Properties prop)
Input a property for constructing the Kafka producer.
|
| Modifier and Type | Method and Description |
|---|---|
org.apache.kafka.clients.producer.KafkaProducer<K,V> |
produce()
Produce a new object.
|
public KafkaProducerFactory(@Nonnull
java.util.Properties prop)