クラス IntegrationFlowDefinition<B extends IntegrationFlowDefinition<B>>
java.lang.ObjectSE
org.springframework.integration.dsl.BaseIntegrationFlowDefinition<B>
org.springframework.integration.dsl.IntegrationFlowDefinition<B>
- 型パラメーター:
B-IntegrationFlowDefinition実装型。
- 既知の直属サブクラス
IntegrationFlowBuilder,IntegrationFlowExtension
public abstract class IntegrationFlowDefinition<B extends IntegrationFlowDefinition<B>>
extends BaseIntegrationFlowDefinition<B>
予想されるペイロード型がアップストリームから想定される場合の、一部の型ベースの EIP メソッドのジェネリクスを持つ構文シュガーの
BaseIntegrationFlowDefinition 拡張。より明示的な型変換の場合、ClassSE 引数を持つメソッドを使用することをお勧めします。- 導入:
- 5.0
- 作成者:
- Artem Bilan, Gary Russell, Gabriele Del Prete
ネストされたクラスの要約
クラス org.springframework.integration.dsl.BaseIntegrationFlowDefinition から継承されたネストクラス / インターフェース
BaseIntegrationFlowDefinition.ReplyProducerCleanerフィールドのサマリー
クラス org.springframework.integration.dsl.BaseIntegrationFlowDefinition から継承されたフィールド
integrationComponents, PARSERメソッドのサマリー
修飾子と型メソッド説明<P> Bfilter(GenericSelector<P> genericSelector) <P> Bfilter(GenericSelector<P> genericSelector, ConsumerSE<FilterEndpointSpec> endpointConfigurer) <P> Bhandle(GenericHandler<P> handler) <P> Bhandle(GenericHandler<P> handler, ConsumerSE<GenericEndpointSpec<ServiceActivatingHandler>> endpointConfigurer) route(FunctionSE<S, T> router) 提供されたFunctionSE のMethodInvokingRouterにデフォルトのオプションを入力します。route(FunctionSE<S, T> router, ConsumerSE<RouterSpec<T, MethodInvokingRouter>> routerConfigurer) <S,T> B transform(GenericTransformer<S, T> genericTransformer) 提供されたGenericTransformerのMessageTransformingHandlerインスタンスを生成します。クラス org.springframework.integration.dsl.BaseIntegrationFlowDefinition から継承されたメソッド
_this, addComponent, addComponent, addComponents, aggregate, 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, doFilter, doHandle, doRoute, 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, handleReactive, handleReactive, handleReactive, handleReactive, headerFilter, headerFilter, headerFilter, intercept, isImplicitChannel, isOutputChannelRequired, log, log, log, log, log, log, log, log, log, log, log, log, log, 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, splitWith, to, toReactivePublisher, toReactivePublisher, transform, transform, transform, transform, transform, transform, transformWith, trigger, trigger, trigger, trigger, wireTap, wireTap, wireTap, wireTap, wireTap, wireTap, wireTap
メソッドの詳細
transform
提供されたGenericTransformerのMessageTransformingHandlerインスタンスを設定します。メッセージ全体にアクセスする必要がある場合は、BaseIntegrationFlowDefinition.transform(Class, GenericTransformer)を使用します。ショートカット:.transformWith((transformerSpec) -> transformerSpec.function(genericTransformer))- 型パラメーター:
S- ソース型 - 「変換元」。T- ターゲット型 - 「変換する」。- パラメーター:
genericTransformer- 投入するGenericTransformer- 戻り値:
- 現在の
IntegrationFlowDefinition。 - 関連事項:
filter
提供されたGenericSelectorのMethodInvokingSelectorをMessageFilterに入力します。通常、Java 8 ラムダ式で使用されます。
メッセージ全体にアクセスする必要がある場合は、.filter("World"::equals)BaseIntegrationFlowDefinition.filter(Class, GenericSelector)を使用してください。- 型パラメーター:
P- ソースのペイロード型。- パラメーター:
genericSelector- 使用するGenericSelector。- 戻り値:
- 現在の
IntegrationFlowDefinition。
filter
public <P> B filter(GenericSelector<P> genericSelector, ConsumerSE<FilterEndpointSpec> endpointConfigurer) 提供されたGenericSelectorのMessageFilterにMethodInvokingSelectorを設定します。さらに、FilterEndpointSpecを使用して統合エンドポイントのオプションを受け入れます。通常、Java 8 ラムダ式で使用されます。
メッセージ全体にアクセスする必要がある場合は、.filter("World"::equals, e -> e.autoStartup(false))BaseIntegrationFlowDefinition.filter(Class, GenericSelector, Consumer)を使用してください。- 型パラメーター:
P- ソースのペイロード型。- パラメーター:
genericSelector- 使用するGenericSelector。endpointConfigurer- 統合エンドポイントオプションを提供するConsumerSE。- 戻り値:
- 現在の
IntegrationFlowDefinition。 - 関連事項:
handle
実行時に提供されたGenericHandlerを呼び出すために、MethodInvokingMessageProcessorのServiceActivatingHandlerを設定します。通常、Java 8 ラムダ式で使用されます。
メッセージ全体にアクセスする必要がある場合は、.<Integer>handle((p, h) -> p / 2)BaseIntegrationFlowDefinition.handle(Class, GenericHandler)を使用してください。- 型パラメーター:
P- 期待するペイロード型。- パラメーター:
handler- 呼び出すハンドラー。- 戻り値:
- 現在の
IntegrationFlowDefinition。 - 関連事項:
handle
public <P> B handle(GenericHandler<P> handler, 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。 - 関連事項:
route
提供された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。
route
public <S, T extends @Nullable ObjectSE> B route(FunctionSE<S, T> router, 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。