クラス 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
拡張。より明示的な型変換の場合、Class
SE 引数を持つメソッドを使用することをお勧めします。- 導入:
- 5.0
- 作成者:
- Artem Bilan, Gary Russell, Gabriele Del Prete
ネストされたクラスのサマリー
クラス org.springframework.integration.dsl.BaseIntegrationFlowDefinition から継承されたネストクラス / インターフェース
BaseIntegrationFlowDefinition.ReplyProducerCleaner
フィールドのサマリー
クラス org.springframework.integration.dsl.BaseIntegrationFlowDefinition から継承されたフィールド
integrationComponents, PARSER
メソッドのサマリー
修飾子と型メソッド説明<P> B
filter
(GenericSelector<P> genericSelector) <P> B
filter
(GenericSelector<P> genericSelector, ConsumerSE<FilterEndpointSpec> endpointConfigurer) <P> B
handle
(GenericHandler<P> handler) <P> B
handle
(GenericHandler<P> handler, ConsumerSE<GenericEndpointSpec<ServiceActivatingHandler>> endpointConfigurer) <S,
T> B route
(FunctionSE<S, T> router) 提供されたFunction
SE のMethodInvokingRouter
にデフォルトのオプションを入力します。<S,
T> B 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, controlBusOnRegistry, controlBusOnRegistry, 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, 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
- 統合エンドポイントオプションを提供するConsumer
SE。- 戻り値:
- 現在の
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
- 統合エンドポイントオプションを提供するConsumer
SE。- 戻り値:
- 現在の
IntegrationFlowDefinition
。 - 関連事項:
route
提供されたFunction
SE のMethodInvokingRouter
にデフォルトのオプションを入力します。通常、Java 8 ラムダ式で使用されます。.route(p -> p.equals("foo") || p.equals("bar") ? new String[] {"foo", "bar"} : null)
BaseIntegrationFlowDefinition.route(Class, Function)
を使用してください。- 型パラメーター:
S
- ソースのペイロード型。T
- ターゲットの結果型。- パラメーター:
router
- 使用するFunction
SE。- 戻り値:
- 現在の
IntegrationFlowDefinition
。
route
public <S,T> B route(FunctionSE<S, T> router, ConsumerSE<RouterSpec<T, MethodInvokingRouter>> routerConfigurer) 提供されたFunction
SE の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
- 使用するFunction
SE。routerConfigurer
-MethodInvokingRouter
オプションを提供するConsumer
SE。- 戻り値:
- 現在の
IntegrationFlowDefinition
。