クラスの使用
org.springframework.integration.dsl.RouterSpec
RouterSpec を使用するパッケージ
org.springframework.integration.dsl 内の RouterSpec 使用
修飾子と型メソッド説明RouterSpec<K,R> RouterSpec.channelKeyFallback(boolean channelKeyFallback) true(デフォルト)の場合、解決されたチャネルキーがチャネルマップに存在しない場合、キー自体がチャネル名として使用され、チャネルへの解決が試みられます。RouterSpec<K,R> RouterSpec.channelMapping(K key, StringSE channelName) RouterSpec<K,R> RouterSpec.channelMapping(K key, MessageChannel channel) 提供された汎用キーとMessageChannelBean に基づくルーターマッピング構成。RouterSpec<K,R> RouterSpec.defaultOutputToParentFlow()ルータの親フローへのデフォルト出力マッピングを作成します。RouterSpec<K,R> RouterSpec.dynamicChannelLimit(int dynamicChannelLimit) 保持する動的チャネルの数に制限を設定します(レポート用)。RouterSpec<K,R> subFlowMapping(Object, IntegrationFlow)が使用されている場合は呼び出すことができません。RouterSpec<K,R> RouterSpec.resolutionRequired(boolean resolutionRequired) RouterSpec<K,R> RouterSpec.sendTimeout(long sendTimeout) RouterSpec<K,R> RouterSpec.subFlowMapping(K key, IntegrationFlow subFlow) channelMapping(Object, String)の代わりにサブフローを追加します。RouterSpec<K,R> subFlowMapping(Object, IntegrationFlow)が使用されている場合は呼び出すことができません。型 RouterSpec の型引数を持つ org.springframework.integration.dsl のメソッドパラメーター修飾子と型メソッド説明<P,T> B BaseIntegrationFlowDefinition.route(ClassSE<P> expectedType, FunctionSE<P, T> router, ConsumerSE<RouterSpec<T, MethodInvokingRouter>> routerConfigurer) BaseIntegrationFlowDefinition.route(ObjectSE service, StringSE methodName, ConsumerSE<RouterSpec<ObjectSE, MethodInvokingRouter>> routerConfigurer) 提供されたサービスのメソッドとそのメソッドのMethodInvokingRouterに、RouterSpecから提供されたオプションを入力します。BaseIntegrationFlowDefinition.route(StringSE beanName, StringSE method, ConsumerSE<RouterSpec<ObjectSE, MethodInvokingRouter>> routerConfigurer) 提供された Bean のMethodInvokingRouterと、そのメソッドにRouterSpecの提供されたオプションを入力します。<T> BBaseIntegrationFlowDefinition.route(StringSE expression, ConsumerSE<RouterSpec<T, ExpressionEvaluatingRouter>> routerConfigurer) 提供された SpEL 式のExpressionEvaluatingRouterに、RouterSpecから提供されたオプションを入力します。BaseIntegrationFlowDefinition.route(MessageProcessorSpec<?> messageProcessorSpec, ConsumerSE<RouterSpec<ObjectSE, MethodInvokingRouter>> routerConfigurer) <S,T> B IntegrationFlowDefinition.route(FunctionSE<S, T> router, ConsumerSE<RouterSpec<T, MethodInvokingRouter>> routerConfigurer) BaseIntegrationFlowDefinition.routeByException(ConsumerSE<RouterSpec<ClassSE<? extends ThrowableSE>, ErrorMessageExceptionTypeRouter>> routerConfigurer) RouterSpecのオプションをErrorMessageExceptionTypeRouterに入力します。