public class Address
extends java.lang.Object
(exchange)/(routingKey)Here we also the exchange name to default to empty (so just a routing key will work if you know the queue name).
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
AMQ_RABBITMQ_REPLY_TO
Use this value in
RabbitTemplate#setReplyAddress(String) to explicitly
indicate that direct reply-to is to be used. |
Constructor and Description |
---|
Address(java.lang.String address)
Create an Address instance from a structured String with the form
(exchange)/(routingKey) |
Address(java.lang.String exchangeName,
java.lang.String routingKey)
Create an Address given the exchange name and routing key.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getExchangeName() |
java.lang.String |
getRoutingKey() |
int |
hashCode() |
java.lang.String |
toString() |
public static final java.lang.String AMQ_RABBITMQ_REPLY_TO
RabbitTemplate#setReplyAddress(String)
to explicitly
indicate that direct reply-to is to be used.public Address(java.lang.String address)
(exchange)/(routingKey).
address
- a structured string.public Address(java.lang.String exchangeName, java.lang.String routingKey)
exchangeName
- The exchange name.routingKey
- The routing key.public java.lang.String getExchangeName()
public java.lang.String getRoutingKey()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object