a>
<ul class="blockList">
<li class="blockList">
<h4>prepare</h4>
<pre>public&nbsp;void&nbsp;prepare()</pre>
<div class="block">default
 props.put("key.serializer.class", "kafka.serializer.StringEncoder");
 props.put("value.serializer.class", "kafka.serializer.StringEncoder");
 props.put("partitioner.class", "kafka.producer.DefaultPartitioner");
 props.put("producer.type", "sync");
 props.put("compression.codec", "none");
 props.put("request.required.acks", "1");
 props.put("batch.num.messages", "1024");
 p