public interface ProducerFactory
Producer instances.| Modifier and Type | Method and Description |
|---|---|
<K,V> Producer<K,V> |
createProducer(java.util.Properties config,
Serializer<K> ks,
Serializer<V> vs)
Creates kafka producer, could be overridden for further control.
|
@NonNull <K,V> Producer<K,V> createProducer(java.util.Properties config, Serializer<K> ks, Serializer<V> vs)
K - key typeV - value typeconfig - properties for producerks - key serializervs - value serializer