public final class ExchangeBuilder extends AbstractBuilder
Exchange を構築するための流れるような API を提供するビルダー。| コンストラクターと説明 |
|---|
ExchangeBuilder(StringSE name, StringSE type) 適切な型のインスタンスを構築します。 |
| 修飾子と型 | メソッドと説明 |
|---|---|
ExchangeBuilder | admins(ObjectSE... admins) 管理インスタンス、またはこの交換を宣言する必要がある管理 Bean 名。 |
ExchangeBuilder | alternate(StringSE exchange) |
ExchangeBuilder | autoDelete() 自動削除フラグを設定します。 |
<T extends Exchange> | build() |
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) 引数を追加します。 |
getArguments, getOrCreateArgumentscloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSEpublic ExchangeBuilder(StringSE name, StringSE type)
name - 取引所名 type - 型名 ExchangeTypespublic static ExchangeBuilder directExchange(StringSE name)
DirectExchange ビルダーを返します。name - 名前。public static ExchangeBuilder topicExchange(StringSE name)
TopicExchange ビルダーを返します。name - 名前。public static ExchangeBuilder fanoutExchange(StringSE name)
FanoutExchange ビルダーを返します。name - 名前。public static ExchangeBuilder headersExchange(StringSE name)
HeadersExchange ビルダーを返します。name - 名前。public ExchangeBuilder autoDelete()
public ExchangeBuilder durable(boolean isDurable)
isDurable - 永続フラグ (デフォルトは true)。public ExchangeBuilder withArgument(StringSE key, ObjectSE value)
key - 引数キー。value - 引数の値。public ExchangeBuilder withArguments(MapSE<StringSE,ObjectSE> arguments)
arguments - 引数マップ。public ExchangeBuilder alternate(StringSE exchange)
public ExchangeBuilder internal()
public ExchangeBuilder delayed()
public ExchangeBuilder ignoreDeclarationExceptions()
public ExchangeBuilder suppressDeclaration()
public ExchangeBuilder admins(ObjectSE... admins)
admins - 管理者。public <T extends Exchange> T build()