Class Address
java.lang.Object
org.springframework.amqp.core.Address
Represents an address for publication of an AMQP message. The AMQP 0-8 and 0-9
specifications have an unstructured string that is used as a "reply to" address.
There are however conventions in use and this class makes it easier to
follow these conventions, which can be easily summarised as:
(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).
- Author:
- Mark Pollack, Mark Fisher, Dave Syer, Artem Bilan, Gary Russell, Ngoc Nhan
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Use this value inRabbitTemplate#setReplyAddress(String)
to explicitly indicate that direct reply-to is to be used. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
AMQ_RABBITMQ_REPLY_TO
Use this value inRabbitTemplate#setReplyAddress(String)
to explicitly indicate that direct reply-to is to be used.- See Also:
-
-
Constructor Details
-
Address
Create an Address instance from a structured String with the form(exchange)/(routingKey)
.- Parameters:
address
- a structured string.
-
Address
-
-
Method Details
-
getExchangeName
-
getRoutingKey
-
equals
-
hashCode
-
toString
-