public interface AmqpManagementOperations
Modifier and Type | Method and Description |
---|---|
void |
addExchange(Exchange exchange)
Add an exchange to the default vhost ('/').
|
void |
addExchange(java.lang.String vhost,
Exchange exchange)
Add an exchange to the specified vhost.
|
void |
addQueue(Queue queue)
Add a queue to the default vhost ('/').
|
void |
addQueue(java.lang.String vhost,
Queue queue)
Add a queue to the specified vhost.
|
void |
deleteExchange(Exchange exchange)
Delete an exchange from the default vhost ('/').
|
void |
deleteExchange(java.lang.String vhost,
Exchange exchange)
Delete an exchange from the provided vhost.
|
void |
deleteQueue(Queue queue)
Delete a queue from the default vhost ('/').
|
void |
deleteQueue(java.lang.String vhost,
Queue queue)
Delete a queue from the provided vhost.
|
java.util.List<Binding> |
getBindings()
Get all bindings.
|
java.util.List<Binding> |
getBindings(java.lang.String vhost)
Get all bindings in the provided vhost.
|
java.util.List<Binding> |
getBindingsForExchange(java.lang.String vhost,
java.lang.String exchange)
Get all bindings from the provided exchange in the provided vhost.
|
Exchange |
getExchange(java.lang.String name)
Get a specific queue from the default vhost ('/').
|
Exchange |
getExchange(java.lang.String vhost,
java.lang.String name)
Get a specific exchange from the provided vhost.
|
java.util.List<Exchange> |
getExchanges()
Get all exchanges.
|
java.util.List<Exchange> |
getExchanges(java.lang.String vhost)
Get all exchanges in the provided vhost.
|
Queue |
getQueue(java.lang.String name)
Get a specific queue from the default vhost ('/').
|
Queue |
getQueue(java.lang.String vhost,
java.lang.String name)
Get a specific queue from the provided vhost.
|
java.util.List<Queue> |
getQueues()
Get all queues.
|
java.util.List<Queue> |
getQueues(java.lang.String vhost)
Get all queues in the provided vhost.
|
void |
purgeQueue(Queue queue)
Purge a queue in the default vhost ('/').
|
void |
purgeQueue(java.lang.String vhost,
Queue queue)
Purge a queue in the provided vhost.
|
void addExchange(Exchange exchange)
exchange
- the exchange.void addExchange(java.lang.String vhost, Exchange exchange)
vhost
- the vhost.exchange
- the exchange.void purgeQueue(Queue queue)
queue
- the queue.void purgeQueue(java.lang.String vhost, Queue queue)
vhost
- the vhost.queue
- the queue.void deleteQueue(Queue queue)
queue
- the queue.void deleteQueue(java.lang.String vhost, Queue queue)
vhost
- the vhost.queue
- the queue.Queue getQueue(java.lang.String name)
name
- the queue name.Queue getQueue(java.lang.String vhost, java.lang.String name)
vhost
- the vhost.name
- the queue name.java.util.List<Queue> getQueues()
java.util.List<Queue> getQueues(java.lang.String vhost)
vhost
- the vhost.void addQueue(Queue queue)
queue
- the queue.void addQueue(java.lang.String vhost, Queue queue)
vhost
- the vhost.queue
- the queue.void deleteExchange(Exchange exchange)
exchange
- the queue.void deleteExchange(java.lang.String vhost, Exchange exchange)
vhost
- the vhost.exchange
- the queue.Exchange getExchange(java.lang.String name)
name
- the exchange name.Exchange getExchange(java.lang.String vhost, java.lang.String name)
vhost
- the vhost.name
- the exchange name.java.util.List<Exchange> getExchanges()
java.util.List<Exchange> getExchanges(java.lang.String vhost)
DirectExchange
,
FanoutExchange
, HeadersExchange
and TopicExchange
s
are returned.vhost
- the vhost.java.util.List<Binding> getBindings()
java.util.List<Binding> getBindings(java.lang.String vhost)
vhost
- the vhost.java.util.List<Binding> getBindingsForExchange(java.lang.String vhost, java.lang.String exchange)
vhost
- the vhost.exchange
- the exchange name.