public <K, V> KafkaProducer<K, V> createProducer(Serializer<K> keySerializer, Serializer<V> valueSerializer,
                                                     Properties overrideConfig) {
        return broker.createProducer(keySerializer, valueSerializer, overrideConfig);
    }
public < K , V > KafkaProducer < K , V > createProducer ( Serializer < K > keySerializer , Serializer < V > valueSerializer , Properties overrideConfig ) { return broker . createProducer ( keySerializer , valueSerializer , overrideConfig ) ; }
Create a producer that can write to this broker

@param keySerializer   Key serializer class
@param valueSerializer Valuer serializer class
@param overrideConfig  Producer config to override. Pass null if there aren't any.
@param <K>             Type of Key
@param <V>             Type of Value
@return KafkaProducer