B - IntegrationFlowDefinition 実装型。public abstract class IntegrationFlowDefinition<B extends IntegrationFlowDefinition<B>> extends BaseIntegrationFlowDefinition<B>
BaseIntegrationFlowDefinition 拡張。より明示的な型変換の場合、ClassSE 引数を持つメソッドを使用することをお勧めします。BaseIntegrationFlowDefinition.ReplyProducerCleanerintegrationComponents, PARSER_this, addComponent, addComponent, addComponents, aggregate, aggregate, barrier, barrier, bridge, bridge, channel, channel, channel, channel, checkReuse, claimCheckIn, claimCheckIn, claimCheckOut, claimCheckOut, claimCheckOut, controlBus, controlBus, convert, convert, currentComponent, currentInterceptableChannel, currentMessageChannel, delay, delay, enrich, enrichHeaders, enrichHeaders, enrichHeaders, enrichHeaders, enrichHeaders, extractProxyTarget, filter, filter, filter, filter, filter, filter, filter, filter, filter, fixedSubscriberChannel, fixedSubscriberChannel, fluxTransform, gateway, gateway, gateway, gateway, gateway, gateway, get, getCurrentComponent, getCurrentMessageChannel, getIntegrationComponents, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, handle, headerFilter, headerFilter, headerFilter, intercept, isImplicitChannel, isOutputChannelRequired, log, log, log, log, log, log, log, log, log, log, log, log, log, logAndReply, logAndReply, logAndReply, logAndReply, logAndReply, logAndReply, logAndReply, logAndReply, logAndReply, logAndReply, logAndReply, logAndReply, logAndReply, nullChannel, obtainInputChannelFromFlow, publishSubscribeChannel, publishSubscribeChannel, publishSubscribeChannel, register, registerOutputChannelIfCan, resequence, resequence, route, route, route, route, route, route, route, route, route, route, route, route, route, route, routeByException, routeToRecipients, scatterGather, scatterGather, scatterGather, scatterGather, scatterGather, scatterGather, setImplicitChannel, split, split, split, split, split, split, split, split, split, split, split, split, split, split, split, split, split, toReactivePublisher, transform, transform, transform, transform, transform, transform, transform, transform, transform, trigger, trigger, trigger, trigger, wireTap, wireTap, wireTap, wireTap, wireTap, wireTap, wireTapcloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSEpublic <S,T> B transform(GenericTransformer<S,T> genericTransformer)
GenericTransformer の MessageTransformingHandler インスタンスを生成します。メッセージ全体にアクセスする必要がある場合は、BaseIntegrationFlowDefinition.transform(Class, GenericTransformer) を使用してください。S - ソース型 - 「変換元」。T - ターゲット型 - 「変換する」。genericTransformer - 投入する GenericTransformerIntegrationFlowDefinition。MethodInvokingTransformer, LambdaMessageProcessorpublic <S,T> B transform(GenericTransformer<S,T> genericTransformer, java.util.function.ConsumerSE<GenericEndpointSpec<MessageTransformingHandler>> endpointConfigurer)
GenericTransformer の MessageTransformingHandler インスタンスを生成します。さらに、GenericEndpointSpec を使用して統合エンドポイントのオプションを受け入れます。メッセージ全体にアクセスする必要がある場合は、BaseIntegrationFlowDefinition.transform(Class, GenericTransformer, Consumer) を使用してください。S - ソース型 - 「変換元」。T - ターゲット型 - 「変換する」。genericTransformer - 投入する GenericTransformerendpointConfigurer - 統合エンドポイントオプションを提供する ConsumerSE。IntegrationFlowDefinition。MethodInvokingTransformer, LambdaMessageProcessor, GenericEndpointSpecpublic <P> B filter(GenericSelector<P> genericSelector)
GenericSelector の MethodInvokingSelector を MessageFilter に入力します。通常、Java 8 ラムダ式で使用されます。
.filter("World"::equals)
メッセージ全体にアクセスする必要がある場合は、BaseIntegrationFlowDefinition.filter(Class, GenericSelector) を使用してください。P - ソースのペイロード型。genericSelector - 使用する GenericSelector。IntegrationFlowDefinition。public <P> B filter(GenericSelector<P> genericSelector, java.util.function.ConsumerSE<FilterEndpointSpec> endpointConfigurer)
GenericSelector の MethodInvokingSelector を MessageFilter に入力します。さらに、FilterEndpointSpec を使用して統合エンドポイントのオプションを受け入れます。通常、Java 8 ラムダ式で使用されます。
.filter("World"::equals, e -> e.autoStartup(false))
メッセージ全体にアクセスする必要がある場合は、BaseIntegrationFlowDefinition.filter(Class, GenericSelector, Consumer) を使用してください。P - ソースのペイロード型。genericSelector - 使用する GenericSelector。endpointConfigurer - 統合エンドポイントオプションを提供する ConsumerSE。IntegrationFlowDefinition。FilterEndpointSpecpublic <P> B handle(GenericHandler<P> handler)
GenericHandler を呼び出すために、MethodInvokingMessageProcessor の ServiceActivatingHandler を設定します。通常、Java 8 ラムダ式で使用されます。
.<Integer>handle((p, h) -> p / 2)
メッセージ全体にアクセスする必要がある場合は、BaseIntegrationFlowDefinition.handle(Class, GenericHandler) を使用してください。P - 期待するペイロード型。handler - 呼び出すハンドラー。IntegrationFlowDefinition。LambdaMessageProcessorpublic <P> B handle(GenericHandler<P> handler, java.util.function.ConsumerSE<GenericEndpointSpec<ServiceActivatingHandler>> endpointConfigurer)
GenericHandler を呼び出すために、MethodInvokingMessageProcessor の ServiceActivatingHandler を設定します。さらに、GenericEndpointSpec を使用して統合エンドポイントのオプションを受け入れます。通常、Java 8 ラムダ式で使用されます。
.<Integer>handle((p, h) -> p / 2, e -> e.autoStartup(false))
メッセージ全体にアクセスする必要がある場合は、BaseIntegrationFlowDefinition.handle(Class, GenericHandler, Consumer) を使用してください。P - 期待するペイロード型。handler - 呼び出すハンドラー。endpointConfigurer - 統合エンドポイントオプションを提供する ConsumerSE。IntegrationFlowDefinition。LambdaMessageProcessor, GenericEndpointSpecpublic <P> B split(java.util.function.FunctionSE<P,?> splitter, java.util.function.ConsumerSE<SplitterEndpointSpec<MethodInvokingSplitter>> endpointConfigurer)
FunctionSE を評価するために、MethodInvokingSplitter を入力します。さらに、GenericEndpointSpec を使用して統合エンドポイントのオプションを受け入れます。通常、Java 8 ラムダ式で使用されます。
.<String>split(p ->
jdbcTemplate.execute("SELECT * from FOO",
(PreparedStatement ps) ->
new ResultSetIterator<Foo>(ps.executeQuery(),
(rs, rowNum) ->
new Foo(rs.getInt(1), rs.getString(2))))
, e -> e.applySequence(false))
P - ペイロード型。splitter - スプリッター FunctionSEendpointConfigurer - 統合エンドポイントオプションを提供する ConsumerSE。IntegrationFlowDefinition。LambdaMessageProcessor, SplitterEndpointSpecpublic <S,T> B route(java.util.function.FunctionSE<S,T> router)
FunctionSE の MethodInvokingRouter にデフォルトのオプションを入力します。通常、Java 8 ラムダ式で使用されます。
.route(p -> p.equals("foo") || p.equals("bar") ? new String[] {"foo", "bar"} : null)
メッセージ全体にアクセスする必要がある場合は、BaseIntegrationFlowDefinition.route(Class, Function) を使用してください。S - ソースのペイロード型。T - ターゲットの結果型。router - 使用する FunctionSE。IntegrationFlowDefinition。public <S,T> B route(java.util.function.FunctionSE<S,T> router, java.util.function.ConsumerSE<RouterSpec<T,MethodInvokingRouter>> routerConfigurer)
FunctionSE の MethodInvokingRouter に、RouterSpec から提供されたオプションを入力します。さらに、GenericEndpointSpec を使用して統合エンドポイントのオプションを受け入れます。通常、Java 8 ラムダ式で使用されます。
.<Integer, Boolean>route(p -> p % 2 == 0,
m -> m.channelMapping("true", "evenChannel")
.subFlowMapping("false", f ->
f.<Integer>handle((p, h) -> p * 3))
.applySequence(false))
メッセージ全体にアクセスする必要がある場合は、BaseIntegrationFlowDefinition.route(Class, Function, Consumer) を使用してください。S - ソースのペイロード型。T - ターゲットの結果型。router - 使用する FunctionSE。routerConfigurer - MethodInvokingRouter オプションを提供する ConsumerSE。IntegrationFlowDefinition。