Skip to content

Commit 90a2f6b

Browse files
Docs: Improve Javadoc lonk and fix attribute annotation
Signed-off-by: Tran Ngoc Nhan <ngocnhan.tran1996@gmail.com>
1 parent 6dd314f commit 90a2f6b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/reference/antora/modules/ROOT/pages/amqp/resilience-recovering-from-errors-and-broker-failures.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -224,13 +224,13 @@ Essentially, any `x-*` headers are ignored from the client.
224224
To mitigate this new behavior of the RabbitMQ broker, Spring AMQP has introduced a `retry_count` header starting with version 3.2.
225225
When this header is absent and a server side DLX is in action, the `x-death.count` property is mapped to this header.
226226
When the failed message is re-published manually for retries, the `retry_count` header value has to be incremented manually.
227-
See `MessageProperties.incrementRetryCount()` JavaDocs for more information.
227+
See javadoc:org.springframework.amqp.core.MessageProperties#incrementRetryCount()[Javadoc] for more information.
228228

229229
The following example summarise an algorithm for manual retry over the broker:
230230

231231
[source,java]
232232
----
233-
@RabbitListener(queueNames = "some_queue")
233+
@RabbitListener(queues = "some_queue")
234234
public void rePublish(Message message) {
235235
try {
236236
// Process message
@@ -243,7 +243,7 @@ public void rePublish(Message message) {
243243
}
244244
else {
245245
throw new ImmediateAcknowledgeAmqpException("Failed after 4 attempts");
246-
}
246+
}
247247
}
248248
}
249249
----

0 commit comments

Comments
 (0)