count++;
String msg = String.format(msgFormat, count, getName(), uuid
.toString());
System.out.println(String.format(
"producer [%s] sending msg: %s", getName(), msg));
client.publish(topicExpression, buildMsg(msg));
TimeUnit.SECONDS.sleep(timeInterval);
}
} catch (InterruptedException e) {
e.printStackTrace();