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:
parent
3845ab8d29
commit
fdc7b9ffb6
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user