128129130131132133134135136137138
startTest.acquire(); final int msgs = (MESSAGE_COUNT/PRODUCER_COUNT)+1; for (int i = 0; i < msgs; i++) { pp.increment(); producer.send(message); } testsFinished.release(); connection.close(); return null;
135136137138139140141142143144145