Skip to content

Commit a8ab9fb

Browse files
Rename this consumer to avoid confusion with QueueingBasicConsumer
which no longer has a reason to exist and should be avoided.
1 parent 6f849cc commit a8ab9fb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/test/java/com/rabbitmq/client/test/functional/DeadLetterExchange.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ protected void releaseResources() throws IOException {
170170
channel.queueBind(DLQ, DLX, "test");
171171

172172
//measure round-trip latency
173-
QueueMessageConsumer c = new QueueMessageConsumer(channel);
173+
AccumulatingMessageConsumer c = new AccumulatingMessageConsumer(channel);
174174
String cTag = channel.basicConsume(TEST_QUEUE_NAME, true, c);
175175
long start = System.currentTimeMillis();
176176
publish(null, "test");
@@ -562,7 +562,7 @@ private void sleep(long millis) {
562562

563563
/* check that each message arrives within epsilon of the
564564
publication time + TTL + latency */
565-
private void checkPromptArrival(QueueMessageConsumer c,
565+
private void checkPromptArrival(AccumulatingMessageConsumer c,
566566
int count, long latency) throws Exception {
567567
long epsilon = TTL / 10;
568568
for (int i = 0; i < count; i++) {
@@ -697,11 +697,11 @@ private static String randomQueueName() {
697697
return DeadLetterExchange.class.getSimpleName() + "-" + UUID.randomUUID().toString();
698698
}
699699

700-
class QueueMessageConsumer extends DefaultConsumer {
700+
class AccumulatingMessageConsumer extends DefaultConsumer {
701701

702702
BlockingQueue<byte[]> messages = new LinkedBlockingQueue<byte[]>();
703703

704-
public QueueMessageConsumer(Channel channel) {
704+
public AccumulatingMessageConsumer(Channel channel) {
705705
super(channel);
706706
}
707707

0 commit comments

Comments
 (0)