props.put("host", kafkaServerURL);
props.put("port", String.valueOf(kafkaServerPort));
props.put("buffer.size", String.valueOf(kafkaProducerBufferSize));
props.put("connect.timeout.ms", String.valueOf(connectionTimeOut));
props.put("reconnect.interval", String.valueOf(reconnectInterval));
producer = new SyncProducer(new SyncProducerConfig(props));
this.topic = topic;
this.messageSize = messageSize;
producerName = name;
this.batchSize = batchSize;