クラス 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(StringSE name, StringSE type)
適切な型のインスタンスを構築します。
メソッドのサマリー
すべてのメソッド 静的メソッド インスタンスメソッド 具象メソッド 修飾子と型 メソッド 説明 ExchangeBuilder
admins(ObjectSE... admins)
管理インスタンス、またはこの交換を宣言する必要がある管理 Bean 名。ExchangeBuilder
alternate(StringSE exchange)
ExchangeBuilder
autoDelete()
自動削除フラグを設定します。<T extends Exchange>
Tbuild()
ExchangeBuilder
delayed()
遅延フラグを設定します。static ExchangeBuilder
directExchange(StringSE name)
DirectExchange
ビルダーを返します。ExchangeBuilder
durable(boolean isDurable)
永続フラグを設定します。static ExchangeBuilder
fanoutExchange(StringSE name)
FanoutExchange
ビルダーを返します。static ExchangeBuilder
headersExchange(StringSE name)
HeadersExchange
ビルダーを返します。ExchangeBuilder
ignoreDeclarationExceptions()
宣言時にプロパティの不一致などの例外を無視するように切り替えます。ExchangeBuilder
internal()
内部フラグを設定します。ExchangeBuilder
suppressDeclaration()
管理者による交換の宣言を無効にするように切り替えます。static ExchangeBuilder
topicExchange(StringSE name)
TopicExchange
ビルダーを返します。ExchangeBuilder
withArgument(StringSE key, ObjectSE value)
引数を追加します。ExchangeBuilder
withArguments(MapSE<StringSE,ObjectSE> arguments)
引数を追加します。クラス org.springframework.amqp.core.AbstractBuilder から継承されたメソッド
getArguments, getOrCreateArguments
コンストラクターの詳細
ExchangeBuilder
public ExchangeBuilder(StringSE name, StringSE type)
適切な型のインスタンスを構築します。- パラメーター:
name
- 取引所名type
- 型名- 導入:
- 1.6.7
- 関連事項:
ExchangeTypes
メソッドの詳細
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()