クラス ExchangeBuilder

java.lang.ObjectSE
org.springframework.amqp.core.AbstractBuilder
org.springframework.amqp.core.ExchangeBuilder

public final class ExchangeBuilder extends AbstractBuilder
Exchange を構築するための流れるような API を提供するビルダー。
導入:
1.6
作成者:
Gary Russell, Artem Bilan
  • コンストラクターの詳細

    • ExchangeBuilder

      public ExchangeBuilder(StringSE name, StringSE type)
      適切な型のインスタンスを構築します。
      パラメーター:
      name - 取引所名
      type - 型名
      導入:
      1.6.7
      関連事項:
  • メソッドの詳細

    • directExchange

      public static ExchangeBuilder directExchange(StringSE name)
      DirectExchange ビルダーを返します。
      パラメーター:
      name - 名前。
      戻り値:
      ビルダー。
    • topicExchange

      public static ExchangeBuilder topicExchange(StringSE name)
      TopicExchange ビルダーを返します。
      パラメーター:
      name - 名前。
      戻り値:
      ビルダー。
    • fanoutExchange

      public static ExchangeBuilder fanoutExchange(StringSE name)
      FanoutExchange ビルダーを返します。
      パラメーター:
      name - 名前。
      戻り値:
      ビルダー。
    • headersExchange

      public static ExchangeBuilder headersExchange(StringSE name)
      HeadersExchange ビルダーを返します。
      パラメーター:
      name - 名前。
      戻り値:
      ビルダー。
    • autoDelete

      public ExchangeBuilder autoDelete()
      自動削除フラグを設定します。
      戻り値:
      ビルダー。
    • durable

      public ExchangeBuilder durable(boolean isDurable)
      永続フラグを設定します。
      パラメーター:
      isDurable - 永続フラグ (デフォルトは true)。
      戻り値:
      ビルダー。
    • withArgument

      public ExchangeBuilder withArgument(StringSE key, ObjectSE value)
      引数を追加します。
      パラメーター:
      key - 引数キー。
      value - 引数の値。
      戻り値:
      ビルダー。
    • withArguments

      public ExchangeBuilder withArguments(MapSE<StringSE,ObjectSE> arguments)
      引数を追加します。
      パラメーター:
      arguments - 引数マップ。
      戻り値:
      ビルダー。
    • alternate

      public ExchangeBuilder alternate(StringSE exchange)
    • internal

      public ExchangeBuilder internal()
      内部フラグを設定します。
      戻り値:
      ビルダー。
    • delayed

      public ExchangeBuilder delayed()
      遅延フラグを設定します。
      戻り値:
      ビルダー。
    • ignoreDeclarationExceptions

      public ExchangeBuilder ignoreDeclarationExceptions()
      宣言時にプロパティの不一致などの例外を無視するように切り替えます。
      戻り値:
      ビルダー。
      導入:
      2.0
    • suppressDeclaration

      public ExchangeBuilder suppressDeclaration()
      管理者による交換の宣言を無効にするように切り替えます。
      戻り値:
      ビルダー。
      導入:
      2.1
    • admins

      public ExchangeBuilder admins(ObjectSE... admins)
      管理インスタンス、またはこの交換を宣言する必要がある管理 Bean 名。
      パラメーター:
      admins - 管理者。
      戻り値:
      ビルダー。
      導入:
      2.1
    • build

      public <T extends Exchange> T build()