We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 44e5cf1 commit 9651f0bCopy full SHA for 9651f0b
1 file changed
spring-amqp/src/main/java/org/springframework/amqp/tutorials/tut4/Tut4Sender.java
@@ -43,10 +43,13 @@ public class Tut4Sender {
43
44
@Scheduled(fixedDelay = 1000, initialDelay = 500)
45
public void send() {
46
- StringBuilder builder = new StringBuilder("Hello to ");
+ StringBuilder builder = new StringBuilder("Hello to");
47
if (this.index.incrementAndGet() == 3) {
48
this.index.set(0);
49
}
50
+ for (int i = 0; i < this.index.get() + 1; i++) {
51
+ builder.append('.');
52
+ }
53
String key = keys[this.index.get()];
54
builder.append(key).append(' ');
55
builder.append(this.count.incrementAndGet());
0 commit comments