From a30239cc58890975be40493093a2b7a43b5d51e1 Mon Sep 17 00:00:00 2001 From: Gary Russell Date: Wed, 12 Aug 2015 09:01:32 -0400 Subject: [PATCH] AMQP-522: Make RabbitAdmin Constants Public JIRA: https://jira.spring.io/browse/AMQP-522 Update docs. Conflicts: src/reference/asciidoc/amqp.adoc --- .../amqp/rabbit/core/RabbitAdmin.java | 23 +++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/core/RabbitAdmin.java b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/core/RabbitAdmin.java index 288ccea0..914c7c4b 100644 --- a/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/core/RabbitAdmin.java +++ b/spring-rabbit/src/main/java/org/springframework/amqp/rabbit/core/RabbitAdmin.java @@ -54,13 +54,28 @@ import com.rabbitmq.client.Channel; */ public class RabbitAdmin implements AmqpAdmin, ApplicationContextAware, InitializingBean { - protected static final String DEFAULT_EXCHANGE_NAME = ""; + /** + * The default exchange name. + */ + public static final String DEFAULT_EXCHANGE_NAME = ""; - protected static final Object QUEUE_NAME = "QUEUE_NAME"; + /** + * Property key for the queue name in the {@link Properties} returned by + * {@link #getQueueProperties(String)}. + */ + public static final Object QUEUE_NAME = "QUEUE_NAME"; - protected static final Object QUEUE_MESSAGE_COUNT = "QUEUE_MESSAGE_COUNT"; + /** + * Property key for the message count in the {@link Properties} returned by + * {@link #getQueueProperties(String)}. + */ + public static final Object QUEUE_MESSAGE_COUNT = "QUEUE_MESSAGE_COUNT"; - protected static final Object QUEUE_CONSUMER_COUNT = "QUEUE_CONSUMER_COUNT"; + /** + * Property key for the consumer count in the {@link Properties} returned by + * {@link #getQueueProperties(String)}. + */ + public static final Object QUEUE_CONSUMER_COUNT = "QUEUE_CONSUMER_COUNT"; /** Logger available to subclasses */ protected final Log logger = LogFactory.getLog(getClass());