クラス RouterSpec<K, R extends AbstractMappingMessageRouter>
java.lang.ObjectSE
org.springframework.integration.dsl.IntegrationComponentSpec<RouterSpec<K,R>, reactor.util.function.Tuple2<ConsumerEndpointFactoryBean, R>>
org.springframework.integration.dsl.EndpointSpec<RouterSpec<K,R>, ConsumerEndpointFactoryBean, R>
org.springframework.integration.dsl.ConsumerEndpointSpec<RouterSpec<K,R>, R>
org.springframework.integration.dsl.AbstractRouterSpec<RouterSpec<K,R>, R>
org.springframework.integration.dsl.RouterSpec<K,R>
- 型パラメーター:
K- 鍵の型。R-AbstractMappingMessageRouter実装型。
- 実装されているすべてのインターフェース:
DisposableBean、FactoryBean<reactor.util.function.Tuple2<ConsumerEndpointFactoryBean, R>>、InitializingBean、Lifecycle、Phased、SmartLifecycle、ComponentsRegistration
public class RouterSpec<K, R extends AbstractMappingMessageRouter>
extends AbstractRouterSpec<RouterSpec<K,R>, R>
- 導入:
- 5.0
- 作成者:
- Artem Bilan, Gary Russell
フィールドのサマリー
クラス org.springframework.integration.dsl.ConsumerEndpointSpec から継承されたフィールド
adviceChainクラス org.springframework.integration.dsl.EndpointSpec から継承されたフィールド
componentsToRegister, endpointFactoryBean, handlerクラス org.springframework.integration.dsl.IntegrationComponentSpec から継承されたフィールド
logger, PARSER, targetインターフェース org.springframework.beans.factory.FactoryBean から継承されたフィールド
OBJECT_TYPE_ATTRIBUTEインターフェース org.springframework.context.SmartLifecycle から継承されたフィールド
DEFAULT_PHASEコンストラクターの概要
コンストラクターメソッドのサマリー
修飾子と型メソッド説明RouterSpec<K, R> channelKeyFallback(boolean channelKeyFallback) true(デフォルト)の場合、解決されたチャネルキーがチャネルマップに存在しない場合、キー自体がチャネル名として使用され、チャネルへの解決が試みられます。RouterSpec<K, R> channelMapping(K key, StringSE channelName) RouterSpec<K, R> channelMapping(K key, MessageChannel channel) 提供された汎用キーとMessageChannelBean に基づくルーターマッピング構成。RouterSpec<K, R> ルータの親フローへのデフォルト出力マッピングを作成します。RouterSpec<K, R> dynamicChannelLimit(int dynamicChannelLimit) 保持する動的チャネルの数に制限を設定します(レポート用)。RouterSpec<K, R> subFlowMapping(Object, IntegrationFlow)が使用されている場合は呼び出すことができません。RouterSpec<K, R> resolutionRequired(boolean resolutionRequired) RouterSpec<K, R> sendTimeout(long sendTimeout) RouterSpec<K, R> subFlowMapping(K key, IntegrationFlow subFlow) channelMapping(Object, String)の代わりにサブフローを追加します。RouterSpec<K, R> subFlowMapping(Object, IntegrationFlow)が使用されている場合は呼び出すことができません。クラス org.springframework.integration.dsl.AbstractRouterSpec から継承されたメソッド
applySequence, defaultOutputChannel, defaultOutputChannel, defaultSubFlowMapping, ignoreSendFailures, isDefaultToParentFlowクラス org.springframework.integration.dsl.ConsumerEndpointSpec から継承されたメソッド
advice, async, autoStartup, customizeMonoReply, doGet, handleMessageAdvice, notPropagatedHeaders, order, phase, poller, reactive, reactive, requiresReply, role, taskScheduler, transactional, transactional, transactional, transactional, transactionalクラス org.springframework.integration.dsl.EndpointSpec から継承されたメソッド
assertHandler, id, obtainInputChannelFromFlow, obtainInputChannelFromFlow, poller, pollerクラス org.springframework.integration.dsl.IntegrationComponentSpec から継承されたメソッド
_this, afterPropertiesSet, destroy, 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
コンストラクターの詳細
RouterSpec
メソッドの詳細
sendTimeout
- オーバーライド:
- クラス
ConsumerEndpointSpec<RouterSpec<K, R extends AbstractMappingMessageRouter>, R extends AbstractMappingMessageRouter>のsendTimeout - パラメーター:
sendTimeout- 送信タイムアウト。- 戻り値:
- エンドポイント仕様。
- 関連事項:
resolutionRequired
- パラメーター:
resolutionRequired- resolutionRequired。- 戻り値:
- ルーターの仕様。
- 関連事項:
dynamicChannelLimit
保持する動的チャネルの数に制限を設定します(レポート用)。制限を超えると、最も古いチャネルが破棄されます。注: これはルーティングには影響せず、動的に解決されたチャネルがにルーティングされたレポートのみに影響します。デフォルト
100.- パラメーター:
dynamicChannelLimit- 限界。- 戻り値:
- ルーターの仕様。
- 関連事項:
prefix
subFlowMapping(Object, IntegrationFlow)が使用されている場合は呼び出すことができません。- パラメーター:
prefix- プレフィックス。- 戻り値:
- ルーターの仕様。
- 関連事項:
suffix
subFlowMapping(Object, IntegrationFlow)が使用されている場合は呼び出すことができません。- パラメーター:
suffix- 設定するサフィックス。- 戻り値:
- ルーターの仕様。
- 関連事項:
channelKeyFallback
true (デフォルト) の場合、解決されたチャネルキーがチャネルマップに存在しない場合、キー自体がチャネル名として使用され、チャネルへの解決が試行されます。この機能を無効にするには、falseに設定します。- パラメーター:
channelKeyFallback- フォールバックを無効にする場合は false。- 戻り値:
- ルーターの仕様。
- 導入:
- 6.0
- 関連事項:
channelMapping
- パラメーター:
key- キー。channelName- channelName。- 戻り値:
- ルーターの仕様。
- 関連事項:
channelMapping
提供された汎用キーとMessageChannelBean に基づくルーターマッピング構成。Bean 名に基づいて適切なターゲットルーターマッピングを行うには、MessageChannelがNamedComponentのインスタンスである必要があります。- パラメーター:
key- キー。channel- 使用するMessageChannelインスタンス。- 戻り値:
- ルーターの仕様。
- 導入:
- 5.2
- 関連事項:
subFlowMapping
channelMapping(Object, String)の代わりにサブフローを追加します。サブフローマッピングが使用されている場合、prefix(String)およびsuffix(String)は使用できません。サブフローが外部
IntegrationFlowBean を参照する必要があり、そこからの応答を期待する必要がある場合、そのような参照は.gateway()でラップする必要があります。.subFlowMapping(false, sf -> sf.gateway(evenFlow())))- パラメーター:
key- キー。subFlow- subFlow。- 戻り値:
- ルーターの仕様。
defaultOutputToParentFlow
ルーターのデフォルトの出力マッピングを親フローに作成します。ルーターの次の親フローMessageChannelをこのルーターのAbstractMessageRouter.setDefaultOutputChannel(MessageChannel)として使用します。このオプションは、後で明示的に呼び出されない場合、AbstractMappingMessageRouter.setChannelKeyFallback(boolean)も無効にして、チャネル名の解決の試行をスキップします。- オーバーライド:
- クラス
AbstractRouterSpec<RouterSpec<K, R extends AbstractMappingMessageRouter>, R extends AbstractMappingMessageRouter>のdefaultOutputToParentFlow - 戻り値:
- ルーターの仕様。
- 導入:
- 6.0
getComponentsToRegister
- 次で指定:
- インターフェース
ComponentsRegistrationのgetComponentsToRegister - オーバーライド:
- クラス
EndpointSpec<RouterSpec<K, R extends AbstractMappingMessageRouter>, ConsumerEndpointFactoryBean, R extends AbstractMappingMessageRouter>のgetComponentsToRegister