final int batchSize = 50;
Executors.newSingleThreadExecutor().execute(new Runnable() {
@Override
public void run() {
MessageProducer producer = scheduler.createProducer();
for (int i = 0; i < max_count / batchSize; i++) {
long tm = System.currentTimeMillis();
List<Message> messages = Lists.newArrayList();
for (int j = 0; j < batchSize; j++) {
long id = insertCount.incrementAndGet();