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());