break;
Thread.sleep(100);
}
// When in non-transacted mode, the ack is sent _after_ message processing so we need to wait a bit
LocalTopic localTopic = engine.getLocalTopic(params.destinationName);
if (!params.receiverTransacted)
{
while (localTopic.getSize() > 0)
Thread.sleep(10);
}
long endTime = System.currentTimeMillis();
double rate = (double)totalExpected*1000/(endTime-startTime);
System.out.println((endTime-startTime)+" ms ("+rateFormat.format(rate)+" msg/s)");
int totalReceived = 0;
for (int n = 0 ; n < receivers.length ; n++)
totalReceived += receivers[n].getReceivedCount();
int topicSize = localTopic.getSize();
if (topicSize > 0)
{
System.out.println("Expected : "+totalExpected);
System.out.println("Received : "+totalReceived);
System.out.println(localTopic);
System.out.println(localTopic.getConsumersSummary());
TestUtils.dumpThreads();
TestUtils.hang();
}
// Close receivers