138139140141142143144145146147148
for (int i = 0; i < msgs; i++) { pp.increment(); producer.send(message); } testsFinished.release(); connection.close(); return null; } };
168169170171172173174175176177178
} }); connection.start(); doneLatch.acquire(); testsFinished.release(); connection.close(); return null; } };