クラス AmqpClientInboundGatewaySpec
java.lang.ObjectSE
org.springframework.integration.dsl.IntegrationComponentSpec<AmqpClientInboundGatewaySpec, AmqpClientInboundGateway>
org.springframework.integration.dsl.MessagingGatewaySpec<AmqpClientInboundGatewaySpec, AmqpClientInboundGateway>
org.springframework.integration.amqp.dsl.AmqpClientInboundGatewaySpec
- 実装されているすべてのインターフェース:
DisposableBean、FactoryBean<AmqpClientInboundGateway>、InitializingBean、Lifecycle、Phased、SmartLifecycle
public class AmqpClientInboundGatewaySpec
extends MessagingGatewaySpec<AmqpClientInboundGatewaySpec, AmqpClientInboundGateway>
- 導入:
- 7.0
- 作成者:
- Artem Bilan
フィールドのサマリー
クラス org.springframework.integration.dsl.IntegrationComponentSpec から継承されたフィールド
logger, PARSER, targetインターフェース org.springframework.beans.factory.FactoryBean から継承されたフィールド
OBJECT_TYPE_ATTRIBUTEインターフェース org.springframework.context.SmartLifecycle から継承されたフィールド
DEFAULT_PHASEコンストラクターの概要
コンストラクターコンストラクター説明AmqpClientInboundGatewaySpec(AmqpConnectionFactory connectionFactory, StringSE... queueNames) Create an instance based on aAmqpConnectionFactoryand queues to consume from.メソッドのサマリー
修飾子と型メソッド説明adviceChain(Advice... advices) Adviceインスタンスをプロキシメッセージリスナーに設定します。afterReceivePostProcessors(MessagePostProcessor... afterReceivePostProcessors) 受信したばかりのメッセージに適用するMessagePostProcessorインスタンスを追加します。autoSettle(boolean autoSettle) 下流フローの手動決済のために確認応答コールバックをメッセージヘッダーに伝播するには、falseに設定します。consumersPerQueue(int consumersPerQueue) 各キューは独自のコンシューマーで実行されます。このプロパティを設定して、キューごとに複数のコンシューマーを作成します。defaultRequeue(boolean defaultRequeue) メッセージ処理が失敗した場合のデフォルトの動作を設定します。gracefulShutdownPeriod(DurationSE gracefulShutdownPeriod) リスナーコンテナーの停止時にすべてのコンシューマーが正常にシャットダウンするまで待機する期間を設定します。headerMapper(AmqpHeaderMapper headerMapper) リクエストヘッダーと応答ヘッダーをマップするには、AmqpHeaderMapperを設定します。initialCredits(int initialCredits) AMQP 受信者に付与する初期クレジット数。messageConverter(@Nullable MessageConverter messageConverter) デフォルトのSimpleMessageConverterを置き換えるためにMessageConverterを設定します。priority(int priority) コンシューマーの優先。replyExchange(StringSE exchange) 返信を公開するための交換を設定します。replyPostProcessor(ReplyPostProcessor replyPostProcessor) 生成する前に、応答 AMQP メッセージを変更するにはReplyPostProcessorを設定します。replyQueue(StringSE queue) 返信を公開するためのキューを設定します。replyRoutingKey(StringSE routingKey) 返信を公開するためのルーティングキーを設定します。stateListeners(com.rabbitmq.client.amqp.Resource.StateListener... stateListeners) Resource.StateListenerインスタンスをコンシューマーに追加します。クラス org.springframework.integration.dsl.MessagingGatewaySpec から継承されたメソッド
autoStartup, errorChannel, errorChannel, errorOnTimeout, id, observationConvention, phase, replyChannel, replyChannel, replyMapper, replyTimeout, requestChannel, requestChannel, requestMapper, requestTimeout, shouldTrackクラス org.springframework.integration.dsl.IntegrationComponentSpec から継承されたメソッド
_this, afterPropertiesSet, destroy, doGet, getId, getObject, getObjectType, getPhase, isAutoStartup, isRunning, start, stop, stopクラス java.lang.ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, toString, wait, waitSE, waitSEインターフェース org.springframework.beans.factory.FactoryBean から継承されたメソッド
isSingletonインターフェース org.springframework.context.SmartLifecycle から継承されたメソッド
isPauseable
コンストラクターの詳細
AmqpClientInboundGatewaySpec
public AmqpClientInboundGatewaySpec(AmqpConnectionFactory connectionFactory, StringSE... queueNames) Create an instance based on aAmqpConnectionFactoryand queues to consume from.- パラメーター:
connectionFactory- theAmqpConnectionFactoryto connectqueueNames- 消費するキュー
メソッドの詳細
initialCredits
AMQP レシーバーに付与する初期クレジット数。デフォルトは100です。- パラメーター:
initialCredits- 初期単位数- 戻り値:
- スペック
priority
コンシューマーの優先。- パラメーター:
priority- コンシューマー優先- 戻り値:
- スペック
stateListeners
public AmqpClientInboundGatewaySpec stateListeners(com.rabbitmq.client.amqp.Resource.StateListener... stateListeners) Resource.StateListenerインスタンスをコンシューマーに追加します。- パラメーター:
stateListeners- 追加するリスナー- 戻り値:
- スペック
afterReceivePostProcessors
public AmqpClientInboundGatewaySpec afterReceivePostProcessors(MessagePostProcessor... afterReceivePostProcessors) 受信したばかりのメッセージに適用するMessagePostProcessorインスタンスを追加します。- パラメーター:
afterReceivePostProcessors- 追加するリスナー- 戻り値:
- スペック
adviceChain
Adviceインスタンスをプロキシメッセージリスナーに設定します。- パラメーター:
advices- the advices to add- 戻り値:
- スペック
autoSettle
下流フローの手動決済のために確認応答コールバックをメッセージヘッダーに伝播するには、falseに設定します。- パラメーター:
autoSettle-trueto acknowledge messages automatically.- 戻り値:
- スペック
defaultRequeue
Set the default behavior when a message processing has failed. When true, messages will be requeued, when false, they will be discarded. This option can be overruled by throwingAmqpRejectAndDontRequeueExceptionorImmediateRequeueAmqpExceptionfrom the downstream flow. Default true.- パラメーター:
defaultRequeue- デフォルトで再キューする場合は true です。- 戻り値:
- スペック
gracefulShutdownPeriod
Set a duration for how long to wait for all the consumers to shut down successfully on listener container stop. Default 30 seconds.- パラメーター:
gracefulShutdownPeriod- the timeout to wait on stop.- 戻り値:
- スペック
consumersPerQueue
各キューは独自のコンシューマーで実行されます。このプロパティを設定すると、キューごとに複数のコンシューマーが作成されます。キューごとにconcurrencyとして扱うこともできます。- パラメーター:
consumersPerQueue- キューごとのコンシューマー。- 戻り値:
- スペック
messageConverter
Set aMessageConverterto replace the defaultSimpleMessageConverter. If set to null, an AMQP message is sent as is into a message payload. And a reply message has to return an AMQP message as its payload.- パラメーター:
messageConverter- 使用するMessageConverterまたは null。- 戻り値:
- スペック
headerMapper
リクエストヘッダーと応答ヘッダーをマップするには、AmqpHeaderMapperを設定します。- パラメーター:
headerMapper- 使用するAmqpHeaderMapper。- 戻り値:
- スペック
replyPostProcessor
生成する前に、応答 AMQP メッセージを変更するにはReplyPostProcessorを設定します。- パラメーター:
replyPostProcessor- 使用するReplyPostProcessor。- 戻り値:
- スペック
replyExchange
Set an exchange for publishing reply. Mutually exclusive withreplyQueue(String). If neither is set, thereplyToproperty from the request message is used to determine where to produce a reply.- パラメーター:
exchange- the exchange to send a reply.- 戻り値:
- スペック
replyRoutingKey
Set a routing key for publishing reply. Used only together withreplyExchange(String). If neither is set, thereplyToproperty from the request message is used to determine where to produce a reply.- パラメーター:
routingKey- the routing key to send a reply.- 戻り値:
- スペック
replyQueue
Set a queue for publishing reply. Mutually exclusive withreplyExchange(String). If neither is set, thereplyToproperty from the request message is used to determine where to produce a reply.- パラメーター:
queue- the queue to send a reply.- 戻り値:
- スペック