public class Address
extends java.lang.Object
(exchangeType)://(exchange)/(routingKey)Here we also allow the exchange type to default to direct, and the exchange name to default to empty (so just a routing key will work if you know the queue name).
ExchangeTypes| Constructor and Description |
|---|
Address(java.lang.String address)
Create an Address instance from a structured String in the form
(exchangeType)://(exchange)/(routingKey) |
Address(java.lang.String exchangeType,
java.lang.String exchangeName,
java.lang.String routingKey)
Create an Address given the exchange type, exchange name and routing key.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getExchangeName() |
java.lang.String |
getExchangeType() |
java.lang.String |
getRoutingKey() |
java.lang.String |
toString() |
public Address(java.lang.String address)
(exchangeType)://(exchange)/(routingKey)where examples of valid
exchangeType values can be found in the ExchangeTypes static
constants.address - a structured string.public Address(java.lang.String exchangeType,
java.lang.String exchangeName,
java.lang.String routingKey)
exchangeType - The exchange type.exchangeName - The exchange name.routingKey - The routing key.