public interface ManagedExchange
| Modifier and Type | Field and Description |
|---|---|
static String |
BINDING_KEY |
static List<String> |
COMPOSITE_ITEM_DESCRIPTIONS |
static List<String> |
COMPOSITE_ITEM_NAMES |
static String |
HDR_BINDING_NUMBER |
static String |
HDR_QUEUE_BINDINGS |
static String |
HDR_QUEUE_NAME |
static List<String> |
HEADERS_COMPOSITE_ITEM_DESC |
static List<String> |
HEADERS_COMPOSITE_ITEM_NAMES |
static List<String> |
HEADERS_TABULAR_UNIQUE_INDEX |
static String |
QUEUE_NAMES |
static List<String> |
TABULAR_UNIQUE_INDEX |
static String |
TYPE |
| Modifier and Type | Method and Description |
|---|---|
TabularData |
bindings()
Returns all the bindings this exchange has with the queues.
|
void |
createNewBinding(String queueName,
String binding)
Creates new binding with the given queue and binding.
|
void |
createNewBinding(String queueName,
String binding,
Map<String,Object> arguments)
Creates new binding with the given queue using given binding key and binding arguments.
|
String |
getExchangeType() |
String |
getName()
Returns the name of the managed exchange.
|
Integer |
getTicketNo() |
boolean |
isAutoDelete()
Tells if the exchange is set for autodelete or not.
|
boolean |
isDurable()
Tells if the exchange is durable or not.
|
void |
removeBinding(String queueName,
String binding)
Removes an exchange binding from a queue.
|
static final String TYPE
static final String BINDING_KEY
static final String QUEUE_NAMES
static final String HDR_BINDING_NUMBER
static final String HDR_QUEUE_NAME
static final String HDR_QUEUE_BINDINGS
String getName() throws IOException
IOExceptionString getExchangeType() throws IOException
IOExceptionInteger getTicketNo() throws IOException
IOExceptionboolean isDurable()
throws IOException
IOExceptionboolean isAutoDelete()
throws IOException
IOExceptionTabularData bindings() throws IOException, JMException
IOExceptionJMExceptionvoid createNewBinding(String queueName, String binding) throws JMException
queueName - binding - JMExceptionvoid createNewBinding(String queueName, String binding, Map<String,Object> arguments) throws JMException
queueName - binding - arguments - JMExceptionvoid removeBinding(String queueName, String binding) throws IOException, JMException
queueName - the Queue namebinding - the binding keyIOExceptionJMExceptionCopyright © 2006–2016 The Apache Software Foundation. All rights reserved.