Make processing shorter in Spring AMQP tutorial 2

Or the consumer application may stop before all
messages are processed, making the user believe
some messages have been lost.
This commit is contained in:
Arnaud Cogoluègnes 2024-05-14 11:02:31 +02:00
parent 3845ab8d29
commit fdc7b9ffb6
No known key found for this signature in database
GPG Key ID: D5C8C4DFAD43AFA8

View File

@ -45,7 +45,7 @@ public class Tut2Receiver {
private void doWork(String in) throws InterruptedException {
for (char ch : in.toCharArray()) {
if (ch == '.') {
Thread.sleep(1000);
Thread.sleep(500);
}
}
}