GH-2956: Fix doc for RabbitAdmin constants

Cannot find the constants (QUEUE_NAME/QUEUE_MESSAGE_COUNT/QUEUE_CONSUMER_COUNT) in RabbitTemplate

Fixes: #2956 
Issue link: https://github.com/spring-projects/spring-amqp/issues/2956

Signed-off-by: Peter Xi <Peter.Xi@disney.com>
Co-authored-by: Peter Xi <Peter.Xi@disney.com>

**Auto-cherry-pick to `3.2.x`**
This commit is contained in:
Aslan Hsi
2025-02-10 21:51:16 +08:00
committed by GitHub
parent e5cdb1ada7
commit ea16a02cee

View File

@@ -43,7 +43,7 @@ public interface AmqpAdmin {
See also xref:amqp/template.adoc#scoped-operations[Scoped Operations].
The `getQueueProperties()` method returns some limited information about the queue (message count and consumer count).
The keys for the properties returned are available as constants in the `RabbitTemplate` (`QUEUE_NAME`,
The keys for the properties returned are available as constants in the `RabbitAdmin` (`QUEUE_NAME`,
`QUEUE_MESSAGE_COUNT`, and `QUEUE_CONSUMER_COUNT`).
The xref:amqp/management-rest-api.adoc#management-rest-api[RabbitMQ REST API] provides much more information in the `QueueInfo` object.