public interface AmqpAdmin
| Modifier and Type | Method and Description |
|---|---|
void |
declareBinding(Binding binding)
Declare a binding of a queue to an exchange.
|
void |
declareExchange(Exchange exchange)
Declare an exchange.
|
Queue |
declareQueue()
Declare a queue whose name is automatically named.
|
String |
declareQueue(Queue queue)
Declare the given queue.
|
boolean |
deleteExchange(String exchangeName)
Delete an exchange.
|
boolean |
deleteQueue(String queueName)
Delete a queue, without regard for whether it is in use or has messages on it.
|
void |
deleteQueue(String queueName,
boolean unused,
boolean empty)
Delete a queue.
|
QueueInformation |
getQueueInfo(String queueName)
Returns information about the queue, if it exists.
|
Properties |
getQueueProperties(String queueName)
Returns an implementation-specific Map of properties if the queue exists.
|
default void |
initialize()
Initialize the admin.
|
int |
purgeQueue(String queueName)
Purges the contents of the given queue.
|
void |
purgeQueue(String queueName,
boolean noWait)
Purges the contents of the given queue.
|
void |
removeBinding(Binding binding)
Remove a binding of a queue to an exchange.
|
void declareExchange(Exchange exchange)
exchange - the exchange to declare.boolean deleteExchange(String exchangeName)
exchangeName - the name of the exchange@Nullable Queue declareQueue()
@Nullable String declareQueue(Queue queue)
queue - the queue to declare.boolean deleteQueue(String queueName)
queueName - the name of the queue.void deleteQueue(String queueName, boolean unused, boolean empty)
queueName - the name of the queue.unused - true if the queue should be deleted only if not in use.empty - true if the queue should be deleted only if empty.void purgeQueue(String queueName, boolean noWait)
queueName - the name of the queue.noWait - true to not await completion of the purge.int purgeQueue(String queueName)
queueName - the name of the queue.void declareBinding(Binding binding)
binding - a description of the binding to declare.void removeBinding(Binding binding)
binding - a description of the binding to remove.@Nullable Properties getQueueProperties(String queueName)
queueName - the name of the queue.@Nullable QueueInformation getQueueInfo(String queueName)
queueName - the name of the queue.default void initialize()