Example usage for Java org.springframework.amqp.rabbit.core RabbitAdmin fields, constructors, methods, implement or subclass
The text is from its open source code.
Object | QUEUE_MESSAGE_COUNT Property key for the message count in the Properties returned by #getQueueProperties(String) . |
Object | QUEUE_CONSUMER_COUNT Property key for the consumer count in the Properties returned by #getQueueProperties(String) . |
RabbitAdmin(ConnectionFactory connectionFactory) Construct an instance using the provided ConnectionFactory . | |
RabbitAdmin(RabbitTemplate rabbitTemplate) Construct an instance using the provided RabbitTemplate . |
void | afterPropertiesSet() If #setAutoStartup(boolean) autoStartup is set to true, registers a callback on the ConnectionFactory to declare all exchanges and queues in the enclosing application context. |
void | declareBinding(final Binding binding) |
void | declareExchange(final Exchange exchange) |
String | declareQueue(final Queue queue) Declare the given queue. |
Queue | declareQueue() Declares a server-named exclusive, autodelete, non-durable queue. |
boolean | deleteExchange(final String exchangeName) |
boolean | deleteQueue(final String queueName) |
DeclarationExceptionEvent | getLastDeclarationExceptionEvent() |
Properties | getQueueProperties(final String queueName) Returns 3 properties #QUEUE_NAME , #QUEUE_MESSAGE_COUNT , #QUEUE_CONSUMER_COUNT , or null if the queue doesn't exist. |
RabbitTemplate | getRabbitTemplate() |
void | initialize() Declares all the exchanges, queues and bindings in the enclosing application context, if any. |
boolean | isAutoStartup() |
void | setApplicationContext(ApplicationContext applicationContext) |
void | setApplicationEventPublisher(ApplicationEventPublisher applicationEventPublisher) |
void | setAutoStartup(boolean autoStartup) |
void | setIgnoreDeclarationExceptions(boolean ignoreDeclarationExceptions) |