mirror of https://github.com/apache/activemq.git
Added code to sleep for the receive delay to receiveAsyncCountBasedMessages().
This commit is contained in:
parent
bab04458e4
commit
4cfb8dc602
|
@ -173,6 +173,8 @@ public class JmsConsumerClient extends AbstractJmsMeasurableClient {
|
|||
@Override
|
||||
public void onMessage(Message msg) {
|
||||
incThroughput();
|
||||
sleep();
|
||||
|
||||
recvCount.incrementAndGet();
|
||||
synchronized (recvCount) {
|
||||
recvCount.notify();
|
||||
|
|
Loading…
Reference in New Issue