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
|
@Override
|
||||||
public void onMessage(Message msg) {
|
public void onMessage(Message msg) {
|
||||||
incThroughput();
|
incThroughput();
|
||||||
|
sleep();
|
||||||
|
|
||||||
recvCount.incrementAndGet();
|
recvCount.incrementAndGet();
|
||||||
synchronized (recvCount) {
|
synchronized (recvCount) {
|
||||||
recvCount.notify();
|
recvCount.notify();
|
||||||
|
|
Loading…
Reference in New Issue