// picking constants arbitarily for warmup phase
ThroughputLatencyAggregator agg = new ThroughputLatencyAggregator("acked pubs", nWarmup, 100);
Message msg = getMsg(1024);
for (int i = 0; i < nWarmup; i++) {
publisher.asyncPublish(topic, msg, new BenchmarkCallback(agg), null);
}
if (agg.tpAgg.queue.take() > 0) {
throw new RuntimeException("Warmup publishes failed!");
}