クラス Address

java.lang.ObjectSE
org.springframework.amqp.core.Address

public class Address extends ObjectSE
Represents an address for publication of an AMQP message. The AMQP 0.9 specification has 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)
 
ここでも、交換名をデフォルトで空にします (そのため、ルーティングキーのみがキュー名として機能します)。

For AMQP 1.0, only a routing key is treated as a target destination.

作成者:
Mark Pollack, Mark Fisher, Dave Syer, Artem Bilan, Gary Russell, Ngoc Nhan
  • フィールドの詳細

    • AMQ_RABBITMQ_REPLY_TO

      public static final StringSE AMQ_RABBITMQ_REPLY_TO
      この値を RabbitTemplate#setReplyAddress(String) で使用して、直接返信先を使用することを明示的に示します。
      関連事項:
  • コンストラクターの詳細

    • Address

      public Address(StringSE address)
      次の形式で構造化文字列から Address インスタンスを作成します
       (exchange)/(routingKey)
       
      . If exchange is parsed to an empty string, then a routing key is treated as a queue name. The AMQ_RABBITMQ_REPLY_TO matching address is treated as a routing key.
      パラメーター:
      address - 構造化された文字列。
    • Address

      public Address(StringSE exchangeName, StringSE routingKey)
      交換名とルーティングキーを指定して Address を作成します。これにより、交換型、名前、ルーティングキーが明示的に設定されます。
      パラメーター:
      exchangeName - エクスチェンジ名。
      routingKey - ルーティングキー。
  • メソッドの詳細