クラス BaseIntegrationFlowDefinition<B extends BaseIntegrationFlowDefinition<B>>
java.lang.ObjectSE
org.springframework.integration.dsl.BaseIntegrationFlowDefinition<B>
- 型パラメーター:
B-BaseIntegrationFlowDefinition実装型。
- 既知の直属サブクラス
IntegrationFlowDefinition
@IntegrationDsl
public abstract class BaseIntegrationFlowDefinition<B extends BaseIntegrationFlowDefinition<B>>
extends ObjectSE
EIP メソッドチェーンの
Builder パターン実装。アプリケーションコンテキストでの将来の登録のために、Spring Integration コンポーネントを IntegrationFlow に取り込むためのさまざまな方法を提供します。- 導入:
- 5.2.1
- 作成者:
- Artem Bilan, Gary Russell, Gabriele Del Prete, Tim Feuerbach, Ngoc Nhan
- 関連事項:
ネストされたクラスの要約
ネストされたクラスフィールドのサマリー
フィールドコンストラクターの概要
コンストラクターメソッドのサマリー
修飾子と型メソッド説明protected final B_this()protected BaddComponent(ObjectSE component) protected BaddComponent(ObjectSE component, @Nullable StringSE beanName) protected BaddComponents(MapSE<ObjectSE, @Nullable StringSE> components) AggregatingMessageHandlerにデフォルトオプションを入力します。aggregate((aggregator) -> aggregator.processor(aggregatorProcessor))のショートカット。aggregate(ConsumerSE<AggregatorSpec> aggregator) AggregatingMessageHandlerにAggregatorSpecから提供されたオプションを入力します。barrier(long timeout) 提供されたタイムアウトのBarrierMessageHandlerインスタンスを作成します。barrier(long timeout, @Nullable ConsumerSE<BarrierSpec> barrierConfigurer) BarrierSpecから提供されたタイムアウトとオプション、およびGenericEndpointSpecからエンドポイントオプションのBarrierMessageHandlerインスタンスを作成します。bridge()BridgeHandlerを現在の統合フロー位置に取り込みます。bridge(@Nullable ConsumerSE<GenericEndpointSpec<BridgeHandler>> endpointConfigurer) BridgeHandlerを現在の統合フロー位置に取り込みます。MessageChannelReferenceインスタンスを現在のIntegrationFlowチェーン位置に取り込みます。channel(FunctionSE<Channels, MessageChannelSpec<?, ?>> channels) channel(MessageChannelSpec<?, ?> messageChannelSpec) channel(MessageChannel messageChannel) 提供されたMessageChannelインスタンスを現在のIntegrationFlowチェーン位置に入力します。protected voidcheckReuse(MessageProducer replyHandler) claimCheckIn(MessageStore messageStore) claimCheckIn(MessageStore messageStore, @Nullable ConsumerSE<GenericEndpointSpec<MessageTransformingHandler>> endpointConfigurer) claimCheckOut(MessageStore messageStore) claimCheckOut(MessageStore messageStore, boolean removeMessage) ClaimCheckOutTransformerのMessageTransformingHandlerに、提供されたMessageStoreおよびremoveMessageフラグを取り込みます。claimCheckOut(MessageStore messageStore, boolean removeMessage, @Nullable ConsumerSE<GenericEndpointSpec<MessageTransformingHandler>> endpointConfigurer) ClaimCheckOutTransformerのMessageTransformingHandlerに、提供されたMessageStoreおよびremoveMessageフラグを取り込みます。controlBus(@Nullable ConsumerSE<GenericEndpointSpec<ServiceActivatingHandler>> endpointConfigurer) <P> B提供されたpayloadTypeのMessageTransformingHandlerインスタンスを生成して、実行時に変換します。<P> Bconvert(ClassSE<P> payloadType, ConsumerSE<GenericEndpointSpec<MessageTransformingHandler>> endpointConfigurer) 提供されたpayloadTypeのMessageTransformingHandlerインスタンスを生成して、実行時に変換します。protected BcurrentComponent(@Nullable ObjectSE component) protected InterceptableChannelInterceptableChannelの場合は現在のチャネルを返し、そうでない場合はフローに新しい暗黙のDirectChannelを登録してそのチャネルを返します。protected BcurrentMessageChannel(@Nullable MessageChannel currentMessageChannel) デフォルトのオプションを使用して、DelayHandlerを現在の統合フロー位置に取り込みます。delay(ConsumerSE<DelayerEndpointSpec> endpointConfigurer) DelayHandlerを現在の統合フロー位置に取り込みます。protected <P> BdoFilter(@Nullable ClassSE<P> expectedType, GenericSelector<P> genericSelector, @Nullable ConsumerSE<FilterEndpointSpec> endpointConfigurer) protected <P> BdoHandle(@Nullable ClassSE<P> expectedType, GenericHandler<P> handler, @Nullable ConsumerSE<GenericEndpointSpec<ServiceActivatingHandler>> endpointConfigurer) doRoute(@Nullable ClassSE<P> expectedType, FunctionSE<P, T> router, @Nullable ConsumerSE<RouterSpec<T, MethodInvokingRouter>> routerConfigurer) enrich(ConsumerSE<EnricherSpec> enricherConfigurer) 指定されたオプションを使用して、ContentEnricherを現在の統合フロー位置に取り込みます。enrichHeaders(ConsumerSE<HeaderEnricherSpec> headerEnricherConfigurer) enrichHeaders(MapSE<StringSE, ObjectSE> headers) enrichHeaders(MapSE<StringSE, ObjectSE> headers, @Nullable ConsumerSE<GenericEndpointSpec<MessageTransformingHandler>> endpointConfigurer) enrichHeaders(MapBuilder<?, StringSE, ObjectSE> headers) enrichHeaders(MapBuilder<?, StringSE, ObjectSE> headers, @Nullable ConsumerSE<GenericEndpointSpec<MessageTransformingHandler>> endpointConfigurer) protected static @Nullable ObjectSEextractProxyTarget(@Nullable ObjectSE target) <P> Bfilter(ClassSE<P> expectedType, GenericSelector<P> genericSelector) <P> Bfilter(ClassSE<P> expectedType, GenericSelector<P> genericSelector, @Nullable ConsumerSE<FilterEndpointSpec> endpointConfigurer) 提供されたサービスの検出されたメソッドのために、MessageFilterにMethodInvokingSelectorを取り込みます。提供されたサービスのメソッドのために、MessageFilterにMethodInvokingSelectorを取り込みます。filter(ObjectSE service, @Nullable StringSE methodName, @Nullable ConsumerSE<FilterEndpointSpec> endpointConfigurer) 提供されたサービスのメソッドのために、MessageFilterにMethodInvokingSelectorを取り込みます。指定された SpEL 式のMessageFilterにMessageSelectorを入力します。filter(StringSE expression, @Nullable ConsumerSE<FilterEndpointSpec> endpointConfigurer) 指定された SpEL 式のMessageFilterにMessageSelectorを入力します。filter(MessageProcessorSpec<?> messageProcessorSpec) filter(MessageProcessorSpec<?> messageProcessorSpec, @Nullable ConsumerSE<FilterEndpointSpec> endpointConfigurer) 現在のIntegrationFlowチェーン位置にFixedSubscriberChannelインスタンスを作成します。fixedSubscriberChannel(@Nullable StringSE messageChannelName) 現在のIntegrationFlowチェーン位置にFixedSubscriberChannelインスタンスを作成します。<I,O> B fluxTransform(FunctionSE<? super reactor.core.publisher.Flux<Message<I>>, ? extends org.reactivestreams.Publisher<O>> fluxFunction) FluxMessageChannelにデータを入力して上流データのリアクティブ処理を開始し、それをFluxにラップし、提供されたFunctionSE をFlux.transform(Function)を介して適用し、結果を下流のフローでサブスクライブされている 1 つ以上のFluxMessageChannelに送信します。提供されたrequestChannelの「人工」GatewayMessageHandlerにデータを入力して、デフォルトオプションでリクエストを送信します。gateway(StringSE requestChannel, @Nullable ConsumerSE<GatewayEndpointSpec> endpointConfigurer) 提供されたrequestChannelの「人工」GatewayMessageHandlerにデータを入力して、GatewayEndpointSpecからオプションを使用してリクエストを送信します。gateway(IntegrationFlow flow) 提供されたsubflowの「人工」GatewayMessageHandlerにデータを入力します。gateway(IntegrationFlow flow, @Nullable ConsumerSE<GatewayEndpointSpec> endpointConfigurer) gateway(MessageChannel requestChannel) 提供されたrequestChannelの「人工」GatewayMessageHandlerにデータを入力して、デフォルトオプションでリクエストを送信します。gateway(MessageChannel requestChannel, @Nullable ConsumerSE<GatewayEndpointSpec> endpointConfigurer) 提供されたrequestChannelの「人工」GatewayMessageHandlerにデータを入力して、GatewayEndpointSpecからオプションを使用してリクエストを送信します。protected StandardIntegrationFlowget()protected @Nullable ObjectSEprotected @Nullable MessageChannel<H extends MessageHandler>
Bhandle(H messageHandler, @Nullable ConsumerSE<GenericEndpointSpec<H>> endpointConfigurer) 提供されたMessageHandler実装のServiceActivatingHandlerを生成します。<P> Bhandle(ClassSE<P> expectedType, GenericHandler<P> handler) <P> Bhandle(ClassSE<P> expectedType, GenericHandler<P> handler, @Nullable ConsumerSE<GenericEndpointSpec<ServiceActivatingHandler>> endpointConfigurer) MethodInvokingMessageProcessorのServiceActivatingHandlerを入力して、実行時に提供されたserviceのディスカバーされたmethodを呼び出します。handle(ObjectSE service, @Nullable StringSE methodName, @Nullable ConsumerSE<GenericEndpointSpec<ServiceActivatingHandler>> endpointConfigurer) handle(StringSE beanName, @Nullable StringSE methodName, @Nullable ConsumerSE<GenericEndpointSpec<ServiceActivatingHandler>> endpointConfigurer) <H extends MessageHandler>
Bhandle(MessageHandlerSpec<?, H> messageHandlerSpec) それぞれの名前空間ファクトリから、選択したプロトコル固有のMessageHandler実装のServiceActivatingHandlerを設定します (例:<H extends MessageHandler>
Bhandle(MessageHandlerSpec<?, H> messageHandlerSpec, @Nullable ConsumerSE<GenericEndpointSpec<H>> endpointConfigurer) それぞれの名前空間ファクトリから、選択したプロトコル固有のMessageHandler実装のServiceActivatingHandlerを設定します (例:handle(MessageProcessorSpec<?> messageProcessorSpec) handle(MessageProcessorSpec<?> messageProcessorSpec, @Nullable ConsumerSE<GenericEndpointSpec<ServiceActivatingHandler>> endpointConfigurer) handle(MessageHandler messageHandler) 提供されたMessageHandler実装のServiceActivatingHandlerを生成します。<H extends ReactiveMessageHandler>
IntegrationFlowhandleReactive(ReactiveMessageHandlerSpec<?, H> messageHandlerSpec) 選択したプロトコル固有のMessageHandler実装のターミナルコンシューマーエンドポイントを、それぞれの名前空間ファクトリから設定します (例:<H extends ReactiveMessageHandler>
IntegrationFlowhandleReactive(ReactiveMessageHandlerSpec<?, H> messageHandlerSpec, @Nullable ConsumerSE<GenericEndpointSpec<ReactiveMessageHandlerAdapter>> endpointConfigurer) 選択したプロトコル固有のMessageHandler実装のターミナルコンシューマーエンドポイントを、それぞれの名前空間ファクトリから設定します (例:handleReactive(ReactiveMessageHandler reactiveMessageHandler) ReactiveMessageHandlerをターミナルIntegrationFlowオペレーターとして追加します。handleReactive(ReactiveMessageHandler reactiveMessageHandler, @Nullable ConsumerSE<GenericEndpointSpec<ReactiveMessageHandlerAdapter>> endpointConfigurer) ReactiveMessageHandlerをターミナルIntegrationFlowオペレーターとして追加します。headerFilter(StringSE... headersToRemove) HeaderFilterを現在のStandardIntegrationFlowに提供します。headerFilter(ConsumerSE<HeaderFilterSpec> headerFilter) HeaderFilterSpecの流れるような API を介してHeaderFilterオプションを提供します。headerFilter(HeaderFilter headerFilter, @Nullable ConsumerSE<GenericEndpointSpec<MessageTransformingHandler>> endpointConfigurer) 提供されたHeaderFilterに提供されたMessageTransformingHandlerを取り込みます。intercept(ChannelInterceptor... interceptorArray) インターセプターがすでに登録されている後、1 つ以上のChannelInterceptor実装を現在のcurrentMessageChannelに指定された順序で追加します。protected booleanprotected booleanlog()currentMessageChannelのWireTapに、INFOロギングレベルのLoggingHandlerサブスクライバーと、デフォルトのロギングカテゴリとしてのorg.springframework.integration.handler.LoggingHandlerを移入します。<P> Blog(StringSE category, FunctionSE<Message<P>, ObjectSE> function) currentMessageChannelのWireTapに、提供されたLoggingHandler.LevelログレベルのLoggingHandlerサブスクライバー、提供されたログカテゴリ、ログメッセージのFunctionSE を移入します。log(StringSE category, Expression logExpression) currentMessageChannelのWireTapに、INFOLoggingHandler.LevelログレベルのLoggingHandlerサブスクライバー、提供されたログカテゴリ、SpEL 式を入力して、リクエストMessageに対して実行時にロガーメッセージを評価します。<P> Blog(FunctionSE<Message<P>, ObjectSE> function) currentMessageChannelのWireTapに、INFOログレベルのLoggingHandlerサブスクライバー、デフォルトのログカテゴリとしてのorg.springframework.integration.handler.LoggingHandler、ログメッセージ用のFunctionSE を入力します。log(Expression logExpression) currentMessageChannelのWireTapに、INFOログレベルのLoggingHandlerサブスクライバー、デフォルトのログカテゴリとしてのorg.springframework.integration.handler.LoggingHandler、リクエストMessageに対して実行時にロガーメッセージを評価するための SpEL 式を入力します。log(LoggingHandler.Level level) currentMessageChannelのWireTapに、提供されたLoggingHandler.LevelログレベルのLoggingHandlerサブスクライバーと、デフォルトのログカテゴリとしてのorg.springframework.integration.handler.LoggingHandlerを入力します。log(LoggingHandler.Level level, @Nullable StringSE category) currentMessageChannelのWireTapに、提供されたLoggingHandler.LevelロギングレベルおよびロギングカテゴリのLoggingHandlerサブスクライバを入力します。<P> Blog(LoggingHandler.Level level, @Nullable StringSE category, FunctionSE<Message<P>, ObjectSE> function) currentMessageChannelのWireTapに、提供されたLoggingHandler.Levelログレベル、ログカテゴリ、ログメッセージのFunctionSE のLoggingHandlerサブスクライバーを入力します。log(LoggingHandler.Level level, @Nullable StringSE category, @Nullable Expression logExpression) currentMessageChannelのWireTapに、提供されたLoggingHandler.Levelログレベル、ログカテゴリ、ログメッセージの SpEL 式のLoggingHandlerサブスクライバを入力します。log(LoggingHandler.Level level, StringSE category, StringSE logExpression) currentMessageChannelのWireTapに、提供されたLoggingHandler.Levelログレベル、ログカテゴリ、ログメッセージの SpEL 式のLoggingHandlerサブスクライバを入力します。<P> Blog(LoggingHandler.Level level, FunctionSE<Message<P>, ObjectSE> function) currentMessageChannelのWireTapに、提供されたLoggingHandler.LevelログレベルのLoggingHandlerサブスクライバー、デフォルトのログカテゴリとしてのorg.springframework.integration.handler.LoggingHandler、ログメッセージ用のFunctionSE を入力します。log(LoggingHandler.Level level, Expression logExpression) currentMessageChannelのWireTapに、提供されたLoggingHandler.LevelログレベルのLoggingHandlerサブスクライバー、デフォルトのログカテゴリとしてのorg.springframework.integration.handler.LoggingHandler、リクエストMessageに対して実行時にロガーメッセージを評価するための SpEL 式を入力します。"nullChannel" Bean を、ターミナルオペレーターとしてこのフロー定義に追加します。protected MessageChannelpublishSubscribeChannel(@Nullable ExecutorSE executor, ConsumerSE<PublishSubscribeSpec> publishSubscribeChannelConfigurer) PublishSubscribeChannelchannel(java.lang.String)メソッド固有の実装。「サブフロー」サブスクライバー機能の使用を許可します。publishSubscribeChannel(ConsumerSE<PublishSubscribeSpec> publishSubscribeChannelConfigurer) PublishSubscribeChannelchannel(java.lang.String)メソッド固有の実装。「サブフロー」サブスクライバー機能の使用を許可します。publishSubscribeChannel(BroadcastCapableChannel broadcastCapableChannel, ConsumerSE<BroadcastPublishSubscribeSpec> publishSubscribeChannelConfigurer) BroadcastCapableChannelchannel(java.lang.String)メソッド固有の実装。「サブフロー」サブスクライバー機能の使用を許可します。protected <S extends ConsumerEndpointSpec<? super S, ? extends MessageHandler>>
Bregister(S endpointSpec, @Nullable ConsumerSE<? super S> endpointConfigurer) protected BregisterOutputChannelIfCan(MessageChannel outputChannel) ResequencingMessageHandlerにデフォルトオプションを入力します。resequence(ConsumerSE<ResequencerSpec> resequencer) ResequencingMessageHandlerにResequencerSpecから提供されたオプションを入力します。route(ClassSE<P> expectedType, FunctionSE<P, T> router, @Nullable ConsumerSE<RouterSpec<T, MethodInvokingRouter>> routerConfigurer) route(ClassSE<S> expectedType, FunctionSE<S, T> router) 提供されているFunctionSE およびペイロード型のMethodInvokingRouterにデフォルトオプションを入力します。提供されたサービスのディスカバーされたメソッドとそのメソッドのMethodInvokingRouterにデフォルトのオプションを入力します。提供されたサービスのメソッドとそのメソッドのMethodInvokingRouterにデフォルトのオプションを入力します。route(ObjectSE service, @Nullable StringSE methodName, @Nullable ConsumerSE<RouterSpec<@Nullable ObjectSE, MethodInvokingRouter>> routerConfigurer) 提供されたサービスのメソッドとそのメソッドのMethodInvokingRouterに、RouterSpecから提供されたオプションを入力します。提供された SpEL 式のExpressionEvaluatingRouterにデフォルトオプションを入力します。提供された Bean のMethodInvokingRouterとそのメソッドにデフォルトのオプションを入力します。route(StringSE beanName, @Nullable StringSE method, @Nullable ConsumerSE<RouterSpec<@Nullable ObjectSE, MethodInvokingRouter>> routerConfigurer) 提供された Bean のMethodInvokingRouterと、そのメソッドにRouterSpecの提供されたオプションを入力します。route(StringSE expression, @Nullable ConsumerSE<RouterSpec<T, ExpressionEvaluatingRouter>> routerConfigurer) 提供された SpEL 式のExpressionEvaluatingRouterに、RouterSpecから提供されたオプションを入力します。route(MessageProcessorSpec<?> messageProcessorSpec) route(MessageProcessorSpec<?> messageProcessorSpec, @Nullable ConsumerSE<RouterSpec<@Nullable ObjectSE, MethodInvokingRouter>> routerConfigurer) route(AbstractMessageRouter router) 提供されたAbstractMessageRouter実装を現在の統合フロー位置に取り込みます。<R extends AbstractMessageRouter>
Broute(R router, @Nullable ConsumerSE<GenericEndpointSpec<R>> endpointConfigurer) 提供されたAbstractMessageRouter実装を現在の統合フロー位置に取り込みます。protected <R extends AbstractMessageRouter, S extends AbstractRouterSpec<? super S, R>>
Broute(S routerSpec, @Nullable ConsumerSE<S> routerConfigurer) routeByException(ConsumerSE<RouterSpec<ClassSE<? extends ThrowableSE>, ErrorMessageExceptionTypeRouter>> routerConfigurer) RouterSpecのオプションをErrorMessageExceptionTypeRouterに入力します。routeToRecipients(ConsumerSE<RecipientListRouterSpec> routerConfigurer) RecipientListRouterSpecのオプションをRecipientListRouterに入力します。scatterGather(ConsumerSE<RecipientListRouterSpec> scatterer) 提供された散乱関数用のRecipientListRouterSpecおよび収集関数用のデフォルトのAggregatorSpecに基づいて、ScatterGatherHandlerを現在の積分フロー位置に入力します。scatterGather(ConsumerSE<RecipientListRouterSpec> scatterer, @Nullable ConsumerSE<AggregatorSpec> gatherer) 提供された散乱関数用のRecipientListRouterSpecおよび収集関数用のAggregatorSpecに基づいて、ScatterGatherHandlerを現在の積分フロー位置に入力します。scatterGather(ConsumerSE<RecipientListRouterSpec> scatterer, @Nullable ConsumerSE<AggregatorSpec> gatherer, @Nullable ConsumerSE<ScatterGatherSpec> scatterGather) 提供された散乱関数用のRecipientListRouterSpecおよび収集関数用のAggregatorSpecに基づいて、ScatterGatherHandlerを現在の積分フロー位置に入力します。scatterGather(MessageChannel scatterChannel) 提供された散乱関数用のMessageChannelおよび収集関数用のデフォルトのAggregatorSpecに基づいて、ScatterGatherHandlerを現在の積分フロー位置に入力します。scatterGather(MessageChannel scatterChannel, @Nullable ConsumerSE<AggregatorSpec> gatherer) scatterGather(MessageChannel scatterChannel, @Nullable ConsumerSE<AggregatorSpec> gatherer, @Nullable ConsumerSE<ScatterGatherSpec> scatterGather) protected voidsetImplicitChannel(boolean implicitChannel) split()DefaultMessageSplitterに現在の統合フロー位置のデフォルトオプションを入力します。<P> Bsplit(ClassSE<P> expectedType, FunctionSE<P, ?> splitter) 実行時に提供されたFunctionSE を評価するために、MethodInvokingSplitterを入力します。提供された SpEL 式をExpressionEvaluatingSplitterに入力します。<S extends AbstractMessageSplitter>
Bsplit(MessageHandlerSpec<?, S> splitterMessageHandlerSpec) 提供されたAbstractMessageSplitterを現在の統合フロー位置に入力します。split(MessageProcessorSpec<?> messageProcessorSpec) split(AbstractMessageSplitter splitter) 提供されたAbstractMessageSplitterを現在の統合フロー位置に入力します。splitWith(ConsumerSE<SplitterSpec> splitterConfigurer) 提供されたオプションをスプリッターに現在の統合フロー位置に設定します。to(IntegrationFlow other) 他のIntegrationFlowインスタンスへの委譲でこのフローを終了します。protected <T> org.reactivestreams.Publisher<Message<T>> 統合フローを Reactive StreamsPublisherBean として表します。protected <T> org.reactivestreams.Publisher<Message<T>> toReactivePublisher(boolean autoStartOnSubscribe) 統合フローを Reactive StreamsPublisherBean として表します。<P,T> B transform(ClassSE<P> expectedType, GenericTransformer<P, T> genericTransformer) 検出されたサービスメソッドを実行時に呼び出すMethodInvokingTransformerのMessageTransformingHandlerを設定します。MethodInvokingTransformerのMessageTransformingHandlerを設定して、実行時にサービスメソッドを呼び出します。実行時に Bean メソッドを呼び出すために、MethodInvokingTransformerのMessageTransformingHandlerを設定します。transform(MessageProcessorSpec<?> messageProcessorSpec) transformWith(ConsumerSE<TransformerEndpointSpec> transformerConfigurer) 提供されたTransformerEndpointSpecオプションを使用して、エンドポイントにMessageTransformingHandlerを設定します。MessageTriggerActionを実行するには、ServiceActivatingHandlerインスタンスにデータを入力します。trigger(StringSE triggerActionId, @Nullable ConsumerSE<GenericEndpointSpec<ServiceActivatingHandler>> endpointConfigurer) GenericEndpointSpecからMessageTriggerActionおよびエンドポイントオプションを実行するために、ServiceActivatingHandlerインスタンスを入力します。trigger(MessageTriggerAction triggerAction) MessageTriggerActionを実行するには、ServiceActivatingHandlerインスタンスにデータを入力します。trigger(MessageTriggerAction triggerAction, @Nullable ConsumerSE<GenericEndpointSpec<ServiceActivatingHandler>> endpointConfigurer) GenericEndpointSpecからMessageTriggerActionおよびエンドポイントオプションを実行するために、ServiceActivatingHandlerインスタンスを入力します。wireTap(StringSE wireTapChannel, @Nullable ConsumerSE<WireTapSpec> wireTapConfigurer) wireTap(IntegrationFlow flow) wireTap(IntegrationFlow flow, @Nullable ConsumerSE<WireTapSpec> wireTapConfigurer) wireTap(WireTapSpec wireTapSpec) wireTap(MessageChannel wireTapChannel) wireTap(MessageChannel wireTapChannel, @Nullable ConsumerSE<WireTapSpec> wireTapConfigurer)
フィールドの詳細
PARSER
integrationComponents
コンストラクターの詳細
BaseIntegrationFlowDefinition
protected BaseIntegrationFlowDefinition()
メソッドの詳細
addComponent
addComponent
addComponents
getIntegrationComponents
currentComponent
getCurrentComponent
currentMessageChannel
getCurrentMessageChannel
currentInterceptableChannel
InterceptableChannelの場合は現在のチャネルを返し、そうでない場合はフローに新しい暗黙のDirectChannelを登録してそのチャネルを返します。- 戻り値:
- 操作後の現在のチャネル
setImplicitChannel
protected void setImplicitChannel(boolean implicitChannel) isImplicitChannel
protected boolean isImplicitChannel()fixedSubscriberChannel
現在のIntegrationFlowチェーン位置にFixedSubscriberChannelインスタンスを生成します。「Bean 名」は、Bean 登録フェーズ中に生成されます。- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。
fixedSubscriberChannel
現在のIntegrationFlowチェーンの位置にFixedSubscriberChannelインスタンスを入力します。提供されたmessageChannelNameは、Bean 登録に使用されます。- パラメーター:
messageChannelName- 使用する Bean 名。- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。
channel
現在のIntegrationFlowチェーン位置にMessageChannelReferenceインスタンスを設定します。アプリケーションコンテキストにそのような Bean が存在しない場合、提供されたmessageChannelNameは Bean 登録 (DirectChannel) に使用されます。それ以外の場合は、既存のMessageChannelBean を使用して統合エンドポイントを接続します。- パラメーター:
messageChannelName- 使用する Bean 名。- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。
channel
- パラメーター:
messageChannelSpec- 使用するMessageChannelSpec。- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。 - 関連事項:
channel
提供されたMessageChannelインスタンスを現在のIntegrationFlowチェーン位置に入力します。messageChannelは、既存の Bean または新規インスタンスにすることができます。その場合、IntegrationFlowBeanPostProcessorは、生成された名前で Bean としてそれを生成します。- パラメーター:
messageChannel- 投入するMessageChannel- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。
channel
- パラメーター:
channels- 使用するFunctionSE。- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。
publishSubscribeChannel
public B publishSubscribeChannel(ConsumerSE<PublishSubscribeSpec> publishSubscribeChannelConfigurer) PublishSubscribeChannelchannel(java.lang.String)メソッド固有の実装。「サブフロー」サブスクライバー機能の使用を許可します。- パラメーター:
publishSubscribeChannelConfigurer-ConsumerSE は、「サブフロー」定義を含むPublishSubscribeSpecオプションを指定します。- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。
publishSubscribeChannel
public B publishSubscribeChannel(@Nullable ExecutorSE executor, ConsumerSE<PublishSubscribeSpec> publishSubscribeChannelConfigurer) 「サブフロー」サブスクライバー機能の使用を可能にするPublishSubscribeChannelchannel(java.lang.String)メソッド固有の実装。ターゲットサブスクライバーには、提供されているExecutorSE を使用します。- パラメーター:
executor- 使用するExecutorSE。publishSubscribeChannelConfigurer-ConsumerSE は、「サブフロー」定義を含むPublishSubscribeSpecオプションを指定します。- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。
publishSubscribeChannel
public B publishSubscribeChannel(BroadcastCapableChannel broadcastCapableChannel, ConsumerSE<BroadcastPublishSubscribeSpec> publishSubscribeChannelConfigurer) BroadcastCapableChannelchannel(java.lang.String)メソッド固有の実装。「サブフロー」サブスクライバー機能の使用を許可します。- パラメーター:
broadcastCapableChannel-BroadcastCapableChannelからサブスクライバーへのサブフロー。publishSubscribeChannelConfigurer-BroadcastPublishSubscribeSpecの「サブフロー」定義を指定するConsumerSE。- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。 - 導入:
- 5.3
wireTap
Wire TapEI パターン固有のChannelInterceptor実装を現在のcurrentMessageChannelに入力します。エンドポイント間で暗黙的なMessageChannelが使用されている場合に役立ちます。
このメソッドは、明示的な.filter("World"::equals) .wireTap(sf -> sf.<String, String>transform(String::toUpperCase)) .handle(p -> process(p))MessageChannelのchannel(java.lang.String)の後で使用できますが、既存のChannelInterceptorには影響しません。- パラメーター:
flow-wireTapChannelの代替としての、ワイヤータップサブフロー用のIntegrationFlow- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。
wireTap
Wire TapEI パターン固有のChannelInterceptor実装を現在のcurrentMessageChannelに入力します。エンドポイント間で暗黙的なMessageChannelが使用されている場合に役立ちます。
このメソッドは、明示的なf -> f.wireTap("tapChannel") .handle(p -> process(p))MessageChannelのchannel(java.lang.String)の後で使用できますが、既存のChannelInterceptorには影響しません。- パラメーター:
wireTapChannel- 盗聴するMessageChannelBean の名前。- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。
wireTap
Wire TapEI パターン固有のChannelInterceptor実装を現在のcurrentMessageChannelに入力します。エンドポイント間で暗黙的なMessageChannelが使用されている場合に役立ちます。
このメソッドは、明示的な.transform("payload") .wireTap(tapChannel()) .channel("foo")MessageChannelのchannel(java.lang.String)の後で使用できますが、既存のChannelInterceptorには影響しません。- パラメーター:
wireTapChannel- ワイヤータップするMessageChannel- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。
wireTap
Wire TapEI パターン固有のChannelInterceptor実装を現在のcurrentMessageChannelに入力します。エンドポイント間で暗黙的なMessageChannelが使用されている場合に役立ちます。
このメソッドは、明示的な.transform("payload") .wireTap(sf -> sf.<String, String>transform(String::toUpperCase), wt -> wt.selector("payload == 'foo'")) .channel("foo")MessageChannelのchannel(java.lang.String)の後で使用できますが、既存のChannelInterceptorには影響しません。- パラメーター:
flow-wireTapChannelの代替としての、ワイヤータップサブフロー用のIntegrationFlowwireTapConfigurer-WireTapのオプションを受け入れるConsumerSE- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。
obtainInputChannelFromFlow
wireTap
Wire TapEI パターン固有のChannelInterceptor実装を現在のcurrentMessageChannelに入力します。エンドポイント間で暗黙的なMessageChannelが使用されている場合に役立ちます。
このメソッドは、明示的な.transform("payload") .wireTap("tapChannel", wt -> wt.selector(m -> m.getPayload().equals("foo"))) .channel("foo")MessageChannelのchannel(java.lang.String)の後で使用できますが、既存のChannelInterceptorには影響しません。- パラメーター:
wireTapChannel- 盗聴するMessageChannelBean の名前。wireTapConfigurer-WireTapのオプションを受け入れるConsumerSE- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。
wireTap
public B wireTap(MessageChannel wireTapChannel, @Nullable ConsumerSE<WireTapSpec> wireTapConfigurer) Wire TapEI パターン固有のChannelInterceptor実装を現在のcurrentMessageChannelに入力します。エンドポイント間で暗黙的なMessageChannelが使用されている場合に役立ちます。
このメソッドは、明示的な.transform("payload") .wireTap(tapChannel(), wt -> wt.selector(m -> m.getPayload().equals("foo"))) .channel("foo")MessageChannelのchannel(java.lang.String)の後で使用できますが、既存のChannelInterceptorには影響しません。- パラメーター:
wireTapChannel- ワイヤータップするMessageChannelwireTapConfigurer-WireTapのオプションを受け入れるConsumerSE- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。
wireTap
Wire TapEI パターン固有のChannelInterceptor実装を現在のcurrentMessageChannelに入力します。エンドポイント間で暗黙の
MessageChannelが使用されている場合に役立ちます。
このメソッドは、明示的な.transform("payload") .wireTap(new WireTap(tapChannel()).selector(m -> m.getPayload().equals("foo"))) .channel("foo")MessageChannelのchannel(java.lang.String)の後で使用できますが、既存のChannelInterceptorには影響しません。- パラメーター:
wireTapSpec- 使用するWireTapSpec。この EIP メソッドがフローの最後で使用される場合、フローを適切に終了するために
nullChannelが追加されます。それ以外の場合は、暗黙的なDirectChannelに対してDispatcher has no subscribers例外がスローされます。- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。
controlBus
- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。
controlBus
public B controlBus(@Nullable ConsumerSE<GenericEndpointSpec<ServiceActivatingHandler>> endpointConfigurer) - パラメーター:
endpointConfigurer- 統合エンドポイントオプションを受け入れるConsumerSE。- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。 - 関連事項:
transform
SpELExpressionのTransformerEI パターン固有のMessageHandler実装を設定します。ショートカット:.transformWith((transformerSpec) -> transformerSpec.expression(expression))- パラメーター:
expression-TransformerExpression- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。 - 関連事項:
transform
検出されたサービスメソッドを実行時に呼び出すために、MethodInvokingTransformerのMessageTransformingHandlerを設定します。ショートカット:.transformWith((transformerSpec) -> transformerSpec.ref(service))- パラメーター:
service- 使用するサービス。- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。 - 関連事項:
transform
MethodInvokingTransformerのMessageTransformingHandlerを設定して、実行時にサービスメソッドを呼び出します。.transformWith((transformerSpec) -> transformerSpec.ref(service).method(methodName))- パラメーター:
service- 使用するサービス。methodName- 呼び出すメソッド。- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。 - 関連事項:
transform
実行時に Bean メソッドを呼び出すために、MethodInvokingTransformerのMessageTransformingHandlerを設定します。.transformWith((transformerSpec) -> transformerSpec.refName(beanName).method(methodName))- パラメーター:
beanName- 遅延解決する Bean の名前。methodName- 呼び出すメソッド。- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。 - 導入:
- 6.2
- 関連事項:
transform
提供されたMessageProcessorSpecからMessageProcessorのMessageTransformingHandlerインスタンスを生成します。
ショートカット:.transform(Scripts.script("classpath:myScript.py").variable("foo", bar())).transformWith((transformerSpec) -> transformerSpec.processor(messageProcessorSpec))- パラメーター:
messageProcessorSpec- 使用するMessageProcessorSpec。- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。 - 関連事項:
convert
提供されたpayloadTypeのMessageTransformingHandlerインスタンスを生成して、実行時に変換します。- 型パラメーター:
P- ペイロード型 - ' に変換 '。- パラメーター:
payloadType- 予想されるペイロード型のClassSE- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。 - 導入:
- 5.1
- 関連事項:
transform
- 型パラメーター:
P- ペイロード型 - 'transform from' またはMessage.class。T- ターゲット型 - 「変換する」。- パラメーター:
expectedType- 予想されるペイロード型のClassSE トランスフォーマー内のメッセージ全体にアクセスする場合は、Message.classにすることもできます。必要に応じて、この型への変換が試行されます。genericTransformer- 投入するGenericTransformer- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。 - 関連事項:
convert
public <P> B convert(ClassSE<P> payloadType, ConsumerSE<GenericEndpointSpec<MessageTransformingHandler>> endpointConfigurer) 提供されたpayloadTypeのMessageTransformingHandlerインスタンスにデータを入力して、実行時に変換します。さらに、GenericEndpointSpecを使用して統合エンドポイントのオプションを受け入れます。- 型パラメーター:
P- ペイロード型 - 「変換する」。- パラメーター:
payloadType- 予想されるペイロード型のClassSEendpointConfigurer- 統合エンドポイントオプションを提供するConsumerSE。- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。 - 導入:
- 5.1
- 関連事項:
transformWith
指定されたTransformerEndpointSpecオプションを使用して、エンドポイントにMessageTransformingHandlerを入力します。"expression"、"ref"、"refName"、"processor"、"function" のいずれかを指定する必要があります。- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。 - 導入:
- 6.2
filter
指定された SpEL 式のMessageFilterにMessageSelectorを入力します。- パラメーター:
expression- SpEL 式。- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。
filter
指定された SpEL 式のMessageSelectorを使用してMessageFilterを設定します。さらに、FilterEndpointSpecを使用して統合エンドポイントのオプションを受け入れます。.filter("payload.hot"), e -> e.autoStartup(false))- パラメーター:
expression- SpEL 式。endpointConfigurer- 統合エンドポイントオプションを提供するConsumerSE。- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。 - 関連事項:
filter
提供されたサービスの検出されたメソッドのために、MessageFilterにMethodInvokingSelectorを取り込みます。- パラメーター:
service- 使用するサービス。- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。 - 関連事項:
filter
提供されたサービスのメソッドのために、MessageFilterにMethodInvokingSelectorを取り込みます。- パラメーター:
service- 使用するサービス。methodName- 呼び出すメソッド- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。 - 関連事項:
filter
public B filter(ObjectSE service, @Nullable StringSE methodName, @Nullable ConsumerSE<FilterEndpointSpec> endpointConfigurer) 提供されたサービスのメソッドのために、MessageFilterにMethodInvokingSelectorを取り込みます。- パラメーター:
service- 使用するサービス。methodName- 呼び出すメソッドendpointConfigurer- 統合エンドポイントオプションを提供するConsumerSE。- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。 - 関連事項:
filter
MessageFilterに、提供されたMessageProcessorSpecからMessageProcessorのMethodInvokingSelectorを取り込みます。.filter(Scripts.script(scriptResource).lang("ruby"))- パラメーター:
messageProcessorSpec- 使用するMessageProcessorSpec。- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。
filter
public B filter(MessageProcessorSpec<?> messageProcessorSpec, @Nullable ConsumerSE<FilterEndpointSpec> endpointConfigurer) 提供されたMessageProcessorSpecからMessageProcessorのMethodInvokingSelectorをMessageFilterに取り込みます。さらに、FilterEndpointSpecを使用して統合エンドポイントのオプションを受け入れます。.filter(Scripts.script(scriptResource).lang("ruby"), e -> e.autoStartup(false))- パラメーター:
messageProcessorSpec- 使用するMessageProcessorSpec。endpointConfigurer- 統合エンドポイントオプションを提供するConsumerSE。- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。
filter
提供されたGenericSelectorに対してMessageFilterにMethodInvokingSelectorを入力します。通常、Java 8 ラムダ式で使用されます。.filter(Date.class, p -> p.after(new Date()))- 型パラメーター:
P- ソースのペイロード型またはMessage.class- パラメーター:
expectedType- 予想されるペイロード型のClassSE セレクターでメッセージ全体にアクセスする場合は、Message.classにすることもできます。必要に応じて、この型への変換が試行されます。genericSelector- 使用するGenericSelector。- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。 - 関連事項:
filter
public <P> B filter(ClassSE<P> expectedType, GenericSelector<P> genericSelector, @Nullable ConsumerSE<FilterEndpointSpec> endpointConfigurer) 提供されたGenericSelectorに対してMessageFilterにMethodInvokingSelectorを入力します。さらに、FilterEndpointSpecを使用して統合エンドポイントのオプションを受け入れます。通常、Java 8 ラムダ式で使用されます。.filter(Date.class, p -> p.after(new Date()), e -> e.autoStartup(false))- 型パラメーター:
P- ソースのペイロード型またはMessage.class- パラメーター:
expectedType- 予想されるペイロード型のClassSE セレクターでメッセージ全体にアクセスする場合は、Message.classにすることもできます。必要に応じて、この型への変換が試行されます。genericSelector- 使用するGenericSelector。endpointConfigurer- 統合エンドポイントオプションを提供するConsumerSE。- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。 - 関連事項:
doFilter
protected <P> B doFilter(@Nullable ClassSE<P> expectedType, GenericSelector<P> genericSelector, @Nullable ConsumerSE<FilterEndpointSpec> endpointConfigurer) handle
選択したプロトコル固有のMessageHandler実装のServiceActivatingHandlerを、それぞれの名前空間ファクトリ (例:Http, Kafka, Files) から設定します。
..handle(Amqp.outboundAdapter(this.amqpTemplate).routingKeyExpression("headers.routingKey"))- 型パラメーター:
H- ターゲットMessageHandler型。- パラメーター:
messageHandlerSpec- プロトコル固有のMessageHandlerを構成するMessageHandlerSpec。- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。
handle
提供されたMessageHandler実装のServiceActivatingHandlerを設定します。ラムダ式として使用できます:.handle(m -> logger.info(m.getPayload())- パラメーター:
messageHandler- 使用するMessageHandler。- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。
handle
- パラメーター:
beanName- 使用する Bean 名。methodName- 呼び出すメソッド。- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。
handle
public B handle(StringSE beanName, @Nullable StringSE methodName, @Nullable ConsumerSE<GenericEndpointSpec<ServiceActivatingHandler>> endpointConfigurer) MethodInvokingMessageProcessorのServiceActivatingHandlerを設定して、実行時に提供されたbeanのmethodを呼び出します。さらに、GenericEndpointSpecを使用して統合エンドポイントのオプションを受け入れます。- パラメーター:
beanName- 使用する Bean 名。methodName- 呼び出すメソッド。endpointConfigurer- 統合エンドポイントオプションを提供するConsumerSE。- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。
handle
MethodInvokingMessageProcessorのServiceActivatingHandlerを入力して、実行時に提供されたserviceのディスカバーされたmethodを呼び出します。- パラメーター:
service- 使用するサービスオブジェクト。- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。
handle
MethodInvokingMessageProcessorのServiceActivatingHandlerを設定して、実行時に提供されたbeanのmethodを呼び出します。さらに、GenericEndpointSpecを使用して統合エンドポイントのオプションを受け入れます。- パラメーター:
service- 使用するサービスオブジェクト。methodName- 呼び出すメソッド。- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。
handle
public B handle(ObjectSE service, @Nullable StringSE methodName, @Nullable ConsumerSE<GenericEndpointSpec<ServiceActivatingHandler>> endpointConfigurer) MethodInvokingMessageProcessorのServiceActivatingHandlerを設定して、実行時に提供されたbeanのmethodを呼び出します。さらに、GenericEndpointSpecを使用して統合エンドポイントのオプションを受け入れます。- パラメーター:
service- 使用するサービスオブジェクト。methodName- 呼び出すメソッド。endpointConfigurer- 統合エンドポイントオプションを提供するConsumerSE。- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。
handle
実行時に提供されたGenericHandlerを呼び出すために、MethodInvokingMessageProcessorのServiceActivatingHandlerを設定します。通常、Lambda 式で使用されます。.handle(Integer.class, (p, h) -> p / 2)- 型パラメーター:
P- 期待するペイロード型、またはMessage.class。- パラメーター:
expectedType- 予想されるペイロード型のClassSE ハンドラーでメッセージ全体にアクセスする場合は、Message.classにすることもできます。必要に応じて、この型への変換が試行されます。handler- 呼び出すハンドラー。- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。 - 関連事項:
handle
public <P> B handle(ClassSE<P> expectedType, GenericHandler<P> handler, @Nullable ConsumerSE<GenericEndpointSpec<ServiceActivatingHandler>> endpointConfigurer) 実行時に提供されたGenericHandlerを呼び出すために、MethodInvokingMessageProcessorのServiceActivatingHandlerを設定します。さらに、GenericEndpointSpecを使用して統合エンドポイントのオプションを受け入れます。通常、Lambda 式で使用されます。.handle(Integer.class, (p, h) -> p / 2, e -> e.autoStartup(false))- 型パラメーター:
P- 期待するペイロード型またはMessage.class。- パラメーター:
expectedType- 予想されるペイロード型のClassSE ハンドラーでメッセージ全体にアクセスする場合は、Message.classにすることもできます。必要に応じて、この型への変換が試行されます。handler- 呼び出すハンドラー。endpointConfigurer- 統合エンドポイントオプションを提供するConsumerSE。- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。 - 関連事項:
doHandle
protected <P> B doHandle(@Nullable ClassSE<P> expectedType, GenericHandler<P> handler, @Nullable ConsumerSE<GenericEndpointSpec<ServiceActivatingHandler>> endpointConfigurer) handle
提供されたMessageProcessorSpecからMessageProcessorのServiceActivatingHandlerを生成します。.handle(Scripts.script("classpath:myScript.ruby"))- パラメーター:
messageProcessorSpec- 使用するMessageProcessorSpec。- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。
handle
public B handle(MessageProcessorSpec<?> messageProcessorSpec, @Nullable ConsumerSE<GenericEndpointSpec<ServiceActivatingHandler>> endpointConfigurer) 提供されたMessageProcessorSpecからMessageProcessorのServiceActivatingHandlerを設定します。さらに、GenericEndpointSpecを使用して統合エンドポイントのオプションを受け入れます。.handle(Scripts.script("classpath:myScript.ruby"), e -> e.autoStartup(false))- パラメーター:
messageProcessorSpec- 使用するMessageProcessorSpec。endpointConfigurer- 統合エンドポイントオプションを提供するConsumerSE。- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。
handle
public <H extends MessageHandler> B handle(MessageHandlerSpec<?, H> messageHandlerSpec, @Nullable ConsumerSE<GenericEndpointSpec<H>> endpointConfigurer) 選択したプロトコル固有のMessageHandler実装のServiceActivatingHandlerを、それぞれの名前空間ファクトリ (例:Http, Kafka, Files) から設定します。さらに、GenericEndpointSpecを使用して統合エンドポイントのオプションを受け入れます。通常、ラムダ式で使用されます。.handle(Amqp.outboundAdapter(this.amqpTemplate).routingKeyExpression("headers.routingKey"), e -> e.autoStartup(false))- 型パラメーター:
H-MessageHandler型。- パラメーター:
messageHandlerSpec- プロトコル固有のMessageHandlerを構成するMessageHandlerSpec。endpointConfigurer- 統合エンドポイントオプションを提供するConsumerSE。- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。
handle
public <H extends MessageHandler> B handle(H messageHandler, @Nullable ConsumerSE<GenericEndpointSpec<H>> endpointConfigurer) 提供されたMessageHandler実装のServiceActivatingHandlerを設定します。さらに、GenericEndpointSpecを使用して統合エンドポイントのオプションを受け入れます。ラムダ式として使用できます:.handle(m -> logger.info(m.getPayload()), e -> e.autoStartup(false))- 型パラメーター:
H-MessageHandler型。- パラメーター:
messageHandler- 使用するMessageHandler。endpointConfigurer- 統合エンドポイントオプションを提供するConsumerSE。- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。
bridge
bridge
BridgeHandlerを現在の統合フロー位置に設定します。通常、Lambda 式で使用されます。.bridge(s -> s.poller(Pollers.fixedDelay(100)) .autoStartup(false) .id("priorityChannelBridge"))- パラメーター:
endpointConfigurer- 統合エンドポイントオプションを提供するConsumerSE。- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。 - 関連事項:
delay
デフォルトのオプションを使用して、現在の統合フロー位置にDelayHandlerを設定します。ショートカット:.delay(delayer -> delayer.messageGroupId(groupId))- パラメーター:
groupId-MessageGroupStoreの遅延メッセージのgroupId- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。
delay
DelayHandlerを現在の積分フロー位置に配置します。DelayerEndpointSpec.messageGroupId(String)は必須オプションです。- パラメーター:
endpointConfigurer- 統合エンドポイントオプションを提供するConsumerSE。- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。 - 導入:
- 6.2
- 関連事項:
enrich
提供されたオプションを使用して、現在の統合フロー位置にContentEnricherを設定します。通常、Lambda 式で使用されます。.enrich(e -> e.requestChannel("enrichChannel") .requestPayload(Message::getPayload) .shouldClonePayload(false) .autoStartup(false) .<Map<String, String>>headerFunction("foo", m -> m.getPayload().get("name")))- パラメーター:
enricherConfigurer-ContentEnricherオプションを提供するConsumerSE。- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。 - 関連事項:
enrichHeaders
提供されたMapBuilderのヘッダー値を使用して、HeaderEnricherのMessageTransformingHandlerを設定します。名前空間ファクトリと一緒に使用できます。.enrichHeaders(Mail.headers() .subjectFunction(m -> "foo") .from("foo@bar") .toFunction(m -> new String[] {"bar@baz"}))- パラメーター:
headers- 使用するMapBuilder。- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。
enrichHeaders
public B enrichHeaders(MapBuilder<?, StringSE, ObjectSE> headers, @Nullable ConsumerSE<GenericEndpointSpec<MessageTransformingHandler>> endpointConfigurer) 提供されたMapBuilderのヘッダー値を使用して、HeaderEnricherのMessageTransformingHandlerを設定します。さらに、GenericEndpointSpecを使用して統合エンドポイントのオプションを受け入れます。名前空間ファクトリと一緒に使用できます。.enrichHeaders(Mail.headers() .subjectFunction(m -> "foo") .from("foo@bar") .toFunction(m -> new String[] {"bar@baz"}), e -> e.autoStartup(false))- パラメーター:
headers- 使用するMapBuilder。endpointConfigurer- 統合エンドポイントオプションを提供するConsumerSE。- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。 - 関連事項:
enrichHeaders
- パラメーター:
headers- エンリッチするヘッダーのマップ。- 戻り値:
- 現在の
IntegrationFlowDefinition。
enrichHeaders
public B enrichHeaders(MapSE<StringSE, ObjectSE> headers, @Nullable ConsumerSE<GenericEndpointSpec<MessageTransformingHandler>> endpointConfigurer) - パラメーター:
headers- エンリッチするヘッダーのマップ。endpointConfigurer- 統合エンドポイントオプションを提供するConsumerSE。- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。 - 関連事項:
enrichHeaders
提供されたConsumerSE の結果として、HeaderEnricherのMessageTransformingHandlerを設定します。通常、Lambda 式で使用されます。.enrichHeaders(h -> h.header(FileHeaders.FILENAME, "foo.sitest") .header("directory", new File(tmpDir, "fileWritingFlow")))- パラメーター:
headerEnricherConfigurer- 使用するConsumerSE。- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。 - 関連事項:
split
DefaultMessageSplitterに現在の統合フロー位置のデフォルトオプションを入力します。- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。
splitWith
提供されたオプションをスプリッターに現在の統合フロー位置に設定します。
または、POJO サービスメソッド呼び出しへの参照を使用します。.splitWith(s -> s.applySequence(false).delimiters(",")).splitWith(s -> s.ref("someService").method("someMethod"))- パラメーター:
splitterConfigurer- オプションスプリッタエンドポイントを提供するConsumerSE。- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。 - 導入:
- 6.2
- 関連事項:
split
提供された SpEL 式をExpressionEvaluatingSplitterに入力します。- パラメーター:
expression- スプリッター SpEL 式。ExpressionEvaluatingSplitterの場合。- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。 - 関連事項:
split
- パラメーター:
service- 使用するサービス。- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。 - 関連事項:
split
- パラメーター:
service- 使用するサービス。methodName- 呼び出すメソッド。- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。 - 関連事項:
split
- パラメーター:
beanName- 使用する Bean 名。methodName- 実行時に呼び出すメソッド。- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。
split
提供されたMessageProcessorSpecから実行時にMessageProcessorを評価するために、MethodInvokingSplitterを入力します。.split(Scripts.script("classpath:myScript.ruby"))- パラメーター:
messageProcessorSpec- スプリッターMessageProcessorSpec- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。 - 関連事項:
split
実行時に提供されたFunctionSE を評価するためにMethodInvokingSplitterを設定します。通常、Lambda 式で使用されます。.split(String.class, p -> jdbcTemplate.execute("SELECT * from FOO", (PreparedStatement ps) -> new ResultSetIterator<Foo>(ps.executeQuery(), (rs, rowNum) -> new Foo(rs.getInt(1), rs.getString(2)))))- 型パラメーター:
P- ペイロード型またはMessage.class- パラメーター:
expectedType- 予想されるペイロード型のClassSE スプリッターでメッセージ全体にアクセスする場合は、Message.classにすることもできます。必要に応じて、この型への変換が試行されます。splitter- スプリッターFunctionSE- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。 - 関連事項:
split
public <S extends AbstractMessageSplitter> B split(MessageHandlerSpec<?, S> splitterMessageHandlerSpec) 提供されたAbstractMessageSplitterを現在の統合フロー位置に入力します。- 型パラメーター:
S-AbstractMessageSplitter- パラメーター:
splitterMessageHandlerSpec- 投入するMessageHandlerSpec- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。 - 関連事項:
split
提供されたAbstractMessageSplitterを現在の統合フロー位置に入力します。- パラメーター:
splitter- 投入するAbstractMessageSplitter- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。 - 関連事項:
headerFilter
HeaderFilterを現在のStandardIntegrationFlowに提供します。- パラメーター:
headersToRemove-MessageHeadersから削除するヘッダー(またはパターン)の配列。- 戻り値:
- この
BaseIntegrationFlowDefinition。
headerFilter
HeaderFilterSpecの流れるような API を介してHeaderFilterオプションを提供します。- パラメーター:
headerFilter-ConsumerSE はヘッダーフィルターとそのエンドポイントオプションを提供します。- 戻り値:
- この
BaseIntegrationFlowDefinition。 - 導入:
- 6.2
headerFilter
public B headerFilter(HeaderFilter headerFilter, @Nullable ConsumerSE<GenericEndpointSpec<MessageTransformingHandler>> endpointConfigurer) 提供されたHeaderFilterに提供されたMessageTransformingHandlerを取り込みます。- パラメーター:
headerFilter- 使用するHeaderFilter。endpointConfigurer- 統合エンドポイントオプションを提供するConsumerSE。- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。 - 関連事項:
claimCheckIn
- パラメーター:
messageStore- 使用するMessageStore。- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。
claimCheckIn
public B claimCheckIn(MessageStore messageStore, @Nullable ConsumerSE<GenericEndpointSpec<MessageTransformingHandler>> endpointConfigurer) 提供されたMessageStoreを使用して、ClaimCheckInTransformerのMessageTransformingHandlerを設定します。さらに、GenericEndpointSpecを使用して統合エンドポイントのオプションを受け入れます。- パラメーター:
messageStore- 使用するMessageStore。endpointConfigurer- 統合エンドポイントオプションを提供するConsumerSE。- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。 - 関連事項:
claimCheckOut
ClaimCheckOutTransformerのMessageTransformingHandlerに、提供されているMessageStoreを入力します。ClaimCheckOutTransformerのremoveMessageオプションはfalseに対するものです。- パラメーター:
messageStore- 使用するMessageStore。- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。
claimCheckOut
ClaimCheckOutTransformerのMessageTransformingHandlerに、提供されたMessageStoreおよびremoveMessageフラグを取り込みます。- パラメーター:
messageStore- 使用するMessageStore。removeMessage- removeMessage ブールフラグ。- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。 - 関連事項:
claimCheckOut
public B claimCheckOut(MessageStore messageStore, boolean removeMessage, @Nullable ConsumerSE<GenericEndpointSpec<MessageTransformingHandler>> endpointConfigurer) 提供されたMessageStoreおよびremoveMessageフラグを使用して、ClaimCheckOutTransformerのMessageTransformingHandlerを設定します。さらに、GenericEndpointSpecを使用して統合エンドポイントのオプションを受け入れます。- パラメーター:
messageStore- 使用するMessageStore。removeMessage- removeMessage ブールフラグ。endpointConfigurer- 統合エンドポイントオプションを提供するConsumerSE。- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。 - 関連事項:
resequence
ResequencingMessageHandlerにデフォルトオプションを入力します。- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。
resequence
ResequencerSpecから提供されたオプションをResequencingMessageHandlerに入力します。さらに、GenericEndpointSpecを使用して統合エンドポイントのオプションを受け入れます。通常、Lambda 式で使用されます。.resequence(r -> r.releasePartialSequences(true) .correlationExpression("'foo'") .phase(100))- パラメーター:
resequencer-ResequencingMessageHandlerオプションを提供するConsumerSE。- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。 - 関連事項:
aggregate
AggregatingMessageHandlerにデフォルトオプションを入力します。- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。
aggregate
aggregate((aggregator) -> aggregator.processor(aggregatorProcessor))のショートカット。- パラメーター:
aggregatorProcessor- 集約戦略を表す POJO。- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。 - 導入:
- 5.5
- 関連事項:
aggregate
AggregatorSpecから提供されたオプションをAggregatingMessageHandlerに入力します。さらに、GenericEndpointSpecを使用して統合エンドポイントのオプションを受け入れます。通常、Lambda 式で使用されます。.aggregate(a -> a.correlationExpression("1") .releaseStrategy(g -> g.size() == 25) .phase(100))- パラメーター:
aggregator-AggregatingMessageHandlerオプションを提供するConsumerSE。- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。 - 関連事項:
route
提供された Bean のMethodInvokingRouterとそのメソッドにデフォルトのオプションを入力します。- パラメーター:
beanName- 使用する Bean。method- 実行時に呼び出すメソッド。- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。
route
public B route(StringSE beanName, @Nullable StringSE method, @Nullable ConsumerSE<RouterSpec<@Nullable ObjectSE, MethodInvokingRouter>> routerConfigurer) 提供された Bean のMethodInvokingRouterと、そのメソッドにRouterSpecの提供されたオプションを入力します。- パラメーター:
beanName- 使用する Bean。method- 実行時に呼び出すメソッド。routerConfigurer-MethodInvokingRouterオプションを提供するConsumerSE。- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。
route
提供されたサービスのディスカバーされたメソッドとそのメソッドのMethodInvokingRouterにデフォルトのオプションを入力します。- パラメーター:
service- 使用する Bean。- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。 - 関連事項:
route
提供されたサービスのメソッドとそのメソッドのMethodInvokingRouterにデフォルトのオプションを入力します。- パラメーター:
service- 使用するサービス。methodName- 呼び出すメソッド。- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。 - 関連事項:
route
public B route(ObjectSE service, @Nullable StringSE methodName, @Nullable ConsumerSE<RouterSpec<@Nullable ObjectSE, MethodInvokingRouter>> routerConfigurer) 提供されたサービスのメソッドとそのメソッドのMethodInvokingRouterに、RouterSpecから提供されたオプションを入力します。- パラメーター:
service- 使用するサービス。methodName- 呼び出すメソッド。routerConfigurer-MethodInvokingRouterオプションを提供するConsumerSE。- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。 - 関連事項:
route
提供された SpEL 式のExpressionEvaluatingRouterにデフォルトオプションを入力します。- パラメーター:
expression- 使用する式。- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。
route
public <T extends @Nullable ObjectSE> B route(StringSE expression, @Nullable ConsumerSE<RouterSpec<T, ExpressionEvaluatingRouter>> routerConfigurer) 提供された SpEL 式のExpressionEvaluatingRouterに、RouterSpecから提供されたオプションを入力します。- 型パラメーター:
T- ターゲットの結果型。- パラメーター:
expression- 使用する式。routerConfigurer-ExpressionEvaluatingRouterオプションを提供するConsumerSE。- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。
route
提供されたFunctionSE およびペイロード型のMethodInvokingRouterにデフォルトオプションを入力します。通常、Lambda 式で使用されます。.route(Integer.class, p -> p % 2 == 0)- 型パラメーター:
S- ソースのペイロード型またはMessage.classT- ターゲットの結果型。- パラメーター:
expectedType- 予想されるペイロード型のClassSE。ルーター内のメッセージ全体にアクセスする場合は、Message.classにすることもできます。必要に応じて、この型への変換が試行されます。router- 使用するFunctionSE。- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。 - 関連事項:
route
public <P, T extends @Nullable ObjectSE> B route(ClassSE<P> expectedType, FunctionSE<P, T> router, @Nullable ConsumerSE<RouterSpec<T, MethodInvokingRouter>> routerConfigurer) 提供されたFunctionSE のMethodInvokingRouterと、RouterSpecからのペイロード型とオプションを入力します。さらに、GenericEndpointSpecを使用して統合エンドポイントのオプションを受け入れます。通常、Lambda 式で使用されます。.route(Integer.class, p -> p % 2 == 0, m -> m.channelMapping("true", "evenChannel") .subFlowMapping("false", f -> f.<Integer>handle((p, h) -> p * 3)) .applySequence(false))- 型パラメーター:
P- ソースのペイロード型またはMessage.classT- ターゲットの結果型。- パラメーター:
expectedType- 予想されるペイロード型のClassSE。ルーター内のメッセージ全体にアクセスする場合は、Message.classにすることもできます。必要に応じて、この型への変換が試行されます。router- 使用するFunctionSE。routerConfigurer-MethodInvokingRouterオプションを提供するConsumerSE。- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。 - 関連事項:
doRoute
protected <P, T extends @Nullable ObjectSE> B doRoute(@Nullable ClassSE<P> expectedType, FunctionSE<P, T> router, @Nullable ConsumerSE<RouterSpec<T, MethodInvokingRouter>> routerConfigurer) route
デフォルトのオプションを使用して、提供されているMessageProcessorSpecからMessageProcessorのMethodInvokingRouterを生成します。.route(Scripts.script(myScriptResource).lang("groovy").refreshCheckDelay(1000))- パラメーター:
messageProcessorSpec- 使用するMessageProcessorSpec。- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。
route
public B route(MessageProcessorSpec<?> messageProcessorSpec, @Nullable ConsumerSE<RouterSpec<@Nullable ObjectSE, MethodInvokingRouter>> routerConfigurer) デフォルトのオプションを使用して、提供されているMessageProcessorSpecからMessageProcessorのMethodInvokingRouterを生成します。.route(Scripts.script(myScriptResource).lang("groovy").refreshCheckDelay(1000), m -> m.channelMapping("true", "evenChannel") .subFlowMapping("false", f -> f.<Integer>handle((p, h) -> p * 3)))- パラメーター:
messageProcessorSpec- 使用するMessageProcessorSpec。routerConfigurer-MethodInvokingRouterオプションを提供するConsumerSE。- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。
route
protected <R extends AbstractMessageRouter, S extends AbstractRouterSpec<? super S, R>> B route(S routerSpec, @Nullable ConsumerSE<S> routerConfigurer) routeToRecipients
RecipientListRouterにRecipientListRouterSpecのオプションを設定します。通常、Lambda 式で使用されます。.routeToRecipients(r -> r .recipient("bar-channel", m -> m.getHeaders().containsKey("recipient") && (boolean) m.getHeaders().get("recipient")) .recipientFlow("'foo' == payload or 'bar' == payload or 'baz' == payload", f -> f.transform(String.class, p -> p.toUpperCase()) .channel(c -> c.queue("recipientListSubFlow1Result"))))- パラメーター:
routerConfigurer-RecipientListRouterオプションを提供するConsumerSE。- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。
routeByException
public B routeByException(ConsumerSE<RouterSpec<ClassSE<? extends ThrowableSE>, ErrorMessageExceptionTypeRouter>> routerConfigurer) ErrorMessageExceptionTypeRouterにRouterSpecのオプションを設定します。通常、Lambda 式で使用されます。.routeByException(r -> r .channelMapping(IllegalArgumentException.class, "illegalArgumentChannel") .subFlowMapping(MessageHandlingException.class, sf -> sf.handle(...)) )- パラメーター:
routerConfigurer-ErrorMessageExceptionTypeRouterオプションを提供するConsumerSE。- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。 - 関連事項:
route
提供されたAbstractMessageRouter実装を現在の統合フロー位置に取り込みます。- パラメーター:
router- 投入するAbstractMessageRouter- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。
route
public <R extends AbstractMessageRouter> B route(R router, @Nullable ConsumerSE<GenericEndpointSpec<R>> endpointConfigurer) 提供されたAbstractMessageRouter実装を現在の統合フロー位置に取り込みます。さらに、GenericEndpointSpecを使用して統合エンドポイントのオプションを受け入れます。- 型パラメーター:
R-AbstractMessageRouter型。- パラメーター:
router- 投入するAbstractMessageRouterendpointConfigurer- 統合エンドポイントオプションを提供するConsumerSE。- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。
gateway
提供されたrequestChannelの「人工的な」GatewayMessageHandlerを設定して、デフォルトのオプションでリクエストを送信します。バックグラウンドでRequestReplyExchangerプロキシを使用します。- パラメーター:
requestChannel-MessageChannelBean 名。- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。
gateway
public B gateway(StringSE requestChannel, @Nullable ConsumerSE<GatewayEndpointSpec> endpointConfigurer) 提供されたrequestChannelの「人工」GatewayMessageHandlerにデータを入力して、GatewayEndpointSpecのオプションを含むリクエストを送信します。バックグラウンドでRequestReplyExchangerプロキシを使用します。- パラメーター:
requestChannel-MessageChannelBean 名。endpointConfigurer- 統合エンドポイントオプションを提供するConsumerSE。- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。
gateway
提供されたrequestChannelの「人工的な」GatewayMessageHandlerを設定して、デフォルトのオプションでリクエストを送信します。バックグラウンドでRequestReplyExchangerプロキシを使用します。- パラメーター:
requestChannel- 使用するMessageChannel。- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。
gateway
public B gateway(MessageChannel requestChannel, @Nullable ConsumerSE<GatewayEndpointSpec> endpointConfigurer) 提供されたrequestChannelの「人工」GatewayMessageHandlerにデータを入力して、GatewayEndpointSpecのオプションを含むリクエストを送信します。バックグラウンドでRequestReplyExchangerプロキシを使用します。- パラメーター:
requestChannel- 使用するMessageChannel。endpointConfigurer- 統合エンドポイントオプションを提供するConsumerSE。- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。
gateway
提供されたsubflowに対応する「人工的な」GatewayMessageHandlerを入力します。通常は aLambda 式と組み合わせて使用します。.gateway(f -> f.transform("From Gateway SubFlow: "::concat))- パラメーター:
flow- theIntegrationFlowto send a request message and wait for reply.- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。
gateway
public B gateway(IntegrationFlow flow, @Nullable ConsumerSE<GatewayEndpointSpec> endpointConfigurer) 提供されたsubflowの「人工的な」GatewayMessageHandlerにGatewayEndpointSpecのオプションを設定します。通常、Lambda 式で使用されます。.gateway(f -> f.transform("From Gateway SubFlow: "::concat), e -> e.replyTimeout(100L))- パラメーター:
flow- theIntegrationFlowto send a request message and wait for reply.endpointConfigurer- 統合エンドポイントオプションを提供するConsumerSE。- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。
log
currentMessageChannelのWireTapに、INFOロギングレベルのLoggingHandlerサブスクライバーと、デフォルトのロギングカテゴリとしてのorg.springframework.integration.handler.LoggingHandlerを移入します。完全なリクエスト
Messageがログに記録されます。- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。 - 関連事項:
log
currentMessageChannelのWireTapに、提供されたLoggingHandler.LevelログレベルのLoggingHandlerサブスクライバーと、デフォルトのログカテゴリとしてのorg.springframework.integration.handler.LoggingHandlerを入力します。完全なリクエスト
Messageがログに記録されます。- パラメーター:
level-LoggingHandler.Level- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。 - 関連事項:
log
currentMessageChannelのWireTapに、提供されたロギングカテゴリとINFOロギングレベルのLoggingHandlerサブスクライバを入力します。完全なリクエスト
Messageがログに記録されます。- パラメーター:
category- 使用するロギングカテゴリ。- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。 - 関連事項:
log
currentMessageChannelのWireTapに、提供されたLoggingHandler.LevelロギングレベルおよびロギングカテゴリのLoggingHandlerサブスクライバを入力します。完全なリクエスト
Messageがログに記録されます。- パラメーター:
level-LoggingHandler.Levelcategory- 使用するロギングカテゴリ。- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。 - 関連事項:
log
currentMessageChannelのWireTapに、提供されたLoggingHandler.Levelログレベル、ログカテゴリ、ログメッセージの SpEL 式のLoggingHandlerサブスクライバを入力します。- パラメーター:
level-LoggingHandler.Levelcategory- ロギングカテゴリ。logExpression- リクエストMessageに対して実行時にロガーメッセージを評価する SpEL 式。- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。 - 関連事項:
log
currentMessageChannelのWireTapに、INFOログレベルのLoggingHandlerサブスクライバー、デフォルトのログカテゴリとしてのorg.springframework.integration.handler.LoggingHandler、ログメッセージ用のFunctionSE を入力します。- 型パラメーター:
P- リクエストMessageに対して、予想されるペイロード型。- パラメーター:
function- 実行時にロガーメッセージを評価する関数- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。 - 関連事項:
log
currentMessageChannelのWireTapに、INFOログレベルのLoggingHandlerサブスクライバー、デフォルトのログカテゴリとしてのorg.springframework.integration.handler.LoggingHandler、リクエストMessageに対して実行時にロガーメッセージを評価するための SpEL 式を入力します。- パラメーター:
logExpression-Expressionは、リクエストMessageに対して実行時にロガーメッセージを評価します。- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。 - 関連事項:
log
currentMessageChannelのWireTapに、提供されたLoggingHandler.LevelログレベルのLoggingHandlerサブスクライバー、デフォルトのログカテゴリとしてのorg.springframework.integration.handler.LoggingHandler、リクエストMessageに対して実行時にロガーメッセージを評価するための SpEL 式を入力します。- パラメーター:
level-LoggingHandler.LevellogExpression-Expressionは、リクエストMessageに対して実行時にロガーメッセージを評価します。- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。 - 関連事項:
log
currentMessageChannelのWireTapに、INFOLoggingHandler.LevelログレベルのLoggingHandlerサブスクライバー、提供されたログカテゴリ、SpEL 式を入力して、リクエストMessageに対して実行時にロガーメッセージを評価します。- パラメーター:
category- ロギングカテゴリ。logExpression-Expressionは、リクエストMessageに対して実行時にロガーメッセージを評価します。- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。 - 関連事項:
log
currentMessageChannelのWireTapに、提供されたLoggingHandler.LevelログレベルのLoggingHandlerサブスクライバー、デフォルトのログカテゴリとしてのorg.springframework.integration.handler.LoggingHandler、ログメッセージ用のFunctionSE を入力します。- 型パラメーター:
P- リクエストMessageに対して、予想されるペイロード型。- パラメーター:
level-LoggingHandler.Levelfunction- 実行時にロガーメッセージを評価する関数- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。 - 関連事項:
log
currentMessageChannelのWireTapに、提供されたLoggingHandler.LevelログレベルのLoggingHandlerサブスクライバー、提供されたログカテゴリ、ログメッセージのFunctionSE を移入します。- 型パラメーター:
P- リクエストMessageに対して、予想されるペイロード型。- パラメーター:
category- ロギングカテゴリ。function- 実行時にロガーメッセージを評価する関数- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。 - 関連事項:
log
public <P> B log(LoggingHandler.Level level, @Nullable StringSE category, FunctionSE<Message<P>, ObjectSE> function) currentMessageChannelのWireTapに、提供されたLoggingHandler.Levelログレベル、ログカテゴリ、ログメッセージのFunctionSE のLoggingHandlerサブスクライバーを入力します。- 型パラメーター:
P- リクエストMessageに対して、予想されるペイロード型。- パラメーター:
level-LoggingHandler.Levelcategory- ロギングカテゴリ。function- 実行時にロガーメッセージを評価する関数- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。 - 関連事項:
log
public B log(LoggingHandler.Level level, @Nullable StringSE category, @Nullable Expression logExpression) currentMessageChannelのWireTapに、提供されたLoggingHandler.Levelログレベル、ログカテゴリ、ログメッセージの SpEL 式のLoggingHandlerサブスクライバを入力します。- パラメーター:
level-LoggingHandler.Levelcategory- ロギングカテゴリ。logExpression-Expressionは、リクエストMessageに対して実行時にロガーメッセージを評価します。- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。 - 関連事項:
scatterGather
提供された散乱関数用のMessageChannelおよび収集関数用のデフォルトのAggregatorSpecに基づいて、ScatterGatherHandlerを現在の積分フロー位置に入力します。- パラメーター:
scatterChannel- スキャッティングリクエスト用のMessageChannel- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。
scatterGather
public B scatterGather(MessageChannel scatterChannel, @Nullable ConsumerSE<AggregatorSpec> gatherer) - パラメーター:
scatterChannel- スキャッティングリクエスト用のMessageChannelgatherer-AggregatorSpecのConsumerSE で Gatherer を構成します。nullにすることができます。- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。
scatterGather
public B scatterGather(MessageChannel scatterChannel, @Nullable ConsumerSE<AggregatorSpec> gatherer, @Nullable ConsumerSE<ScatterGatherSpec> scatterGather) - パラメーター:
scatterChannel- スキャッティングリクエスト用のMessageChannelgatherer-AggregatorSpecのConsumerSE で Gatherer を構成します。nullにすることができます。scatterGather-ScatterGatherHandlerおよびそのエンドポイントを構成するためのScatterGatherSpecのConsumerSE。nullにすることができます。- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。
scatterGather
提供された散乱関数用のRecipientListRouterSpecおよび収集関数用のデフォルトのAggregatorSpecに基づいて、ScatterGatherHandlerを現在の積分フロー位置に入力します。- パラメーター:
scatterer- 散乱体を構成するためのRecipientListRouterSpecのConsumerSE。- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。
scatterGather
public B scatterGather(ConsumerSE<RecipientListRouterSpec> scatterer, @Nullable ConsumerSE<AggregatorSpec> gatherer) 提供された散乱関数用のRecipientListRouterSpecおよび収集関数用のAggregatorSpecに基づいて、ScatterGatherHandlerを現在の積分フロー位置に入力します。- パラメーター:
scatterer- 散乱体を構成するためのRecipientListRouterSpecのConsumerSE。nullにすることができます。gatherer-AggregatorSpecのConsumerSE で Gatherer を構成します。nullにすることができます。- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。
scatterGather
public B scatterGather(ConsumerSE<RecipientListRouterSpec> scatterer, @Nullable ConsumerSE<AggregatorSpec> gatherer, @Nullable ConsumerSE<ScatterGatherSpec> scatterGather) 提供された分散機能用のRecipientListRouterSpecと収集機能用のAggregatorSpecに基づいて、現在の統合フロー位置にScatterGatherHandlerを設定します。便宜上、AbstractRouterSpec.applySequence(boolean)はデフォルトで true に設定されています。- パラメーター:
scatterer- 散乱体を構成するためのRecipientListRouterSpecのConsumerSE。gatherer-AggregatorSpecのConsumerSE で Gatherer を構成します。scatterGather-ScatterGatherHandlerおよびそのエンドポイントを構成するためのScatterGatherSpecのConsumerSE。nullにすることができます。- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。
barrier
提供されたタイムアウトのBarrierMessageHandlerインスタンスを作成します。- パラメーター:
timeout- ミリ秒単位のタイムアウト。- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。
barrier
BarrierSpecから提供されたタイムアウトとオプション、およびGenericEndpointSpecからエンドポイントオプションのBarrierMessageHandlerインスタンスを作成します。- パラメーター:
timeout- ミリ秒単位のタイムアウト。barrierConfigurer-BarrierMessageHandlerオプションを提供するConsumerSE。- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。
trigger
MessageTriggerActionを実行するには、ServiceActivatingHandlerインスタンスにデータを入力します。- パラメーター:
triggerActionId-MessageTriggerActionBean ID。- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。
trigger
public B trigger(StringSE triggerActionId, @Nullable ConsumerSE<GenericEndpointSpec<ServiceActivatingHandler>> endpointConfigurer) GenericEndpointSpecからMessageTriggerActionおよびエンドポイントオプションを実行するために、ServiceActivatingHandlerインスタンスを入力します。- パラメーター:
triggerActionId-MessageTriggerActionBean ID。endpointConfigurer- 統合エンドポイントオプションを提供するConsumerSE。- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。
trigger
MessageTriggerActionを実行するには、ServiceActivatingHandlerインスタンスにデータを入力します。- パラメーター:
triggerAction-MessageTriggerAction- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。
trigger
public B trigger(MessageTriggerAction triggerAction, @Nullable ConsumerSE<GenericEndpointSpec<ServiceActivatingHandler>> endpointConfigurer) GenericEndpointSpecからMessageTriggerActionおよびエンドポイントオプションを実行するために、ServiceActivatingHandlerインスタンスを入力します。- パラメーター:
triggerAction-MessageTriggerActionendpointConfigurer- 統合エンドポイントオプションを提供するConsumerSE。- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。
intercept
インターセプターがすでに登録されている後、1 つ以上のChannelInterceptor実装を現在のcurrentMessageChannelに指定された順序で追加します。- パラメーター:
interceptorArray- 1 つ以上のChannelInterceptor。- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。 - 例外:
IllegalArgumentExceptionSE- 1 つ以上の null 引数が提供されている場合- 導入:
- 5.3
fluxTransform
public <I,O> B fluxTransform(FunctionSE<? super reactor.core.publisher.Flux<Message<I>>, ? extends org.reactivestreams.Publisher<O>> fluxFunction) FluxMessageChannelにデータを入力して上流データのリアクティブ処理を開始し、それをFluxにラップし、提供されたFunctionSE をFlux.transform(Function)を介して適用し、結果を下流のフローでサブスクライブされている 1 つ以上のFluxMessageChannelに送信します。- 型パラメーター:
I- 入力ペイロードの型。O- 出力型。- パラメーター:
fluxFunction-FunctionSE を使用してデータをリアクティブに処理します。- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。
nullChannel
"nullChannel" Bean を、ターミナルオペレーターとしてこのフロー定義に追加します。- 戻り値:
- この定義に基づく
IntegrationFlowインスタンス。 - 導入:
- 5.1
handleReactive
public <H extends ReactiveMessageHandler> IntegrationFlow handleReactive(ReactiveMessageHandlerSpec<?, H> messageHandlerSpec) 選択したプロトコル固有のMessageHandler実装のターミナルコンシューマーエンドポイントを、それぞれの名前空間ファクトリ (例:Http, Kafka, Files) から設定します。さらに、GenericEndpointSpecを使用して統合エンドポイントのオプションを受け入れます。- 型パラメーター:
H-MessageHandler型。- パラメーター:
messageHandlerSpec-MessageHandlerSpecを使用してプロトコル固有のMessageHandlerを設定します。- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。 - 導入:
- 6.1
handleReactive
public <H extends ReactiveMessageHandler> IntegrationFlow handleReactive(ReactiveMessageHandlerSpec<?, H> messageHandlerSpec, @Nullable ConsumerSE<GenericEndpointSpec<ReactiveMessageHandlerAdapter>> endpointConfigurer) 選択したプロトコル固有のMessageHandler実装のターミナルコンシューマーエンドポイントを、それぞれの名前空間ファクトリ (例:Http, Kafka, Files) から設定します。さらに、GenericEndpointSpecを使用して統合エンドポイントのオプションを受け入れます。- 型パラメーター:
H-MessageHandler型。- パラメーター:
messageHandlerSpec-MessageHandlerSpecを使用してプロトコル固有のMessageHandlerを設定します。endpointConfigurer- 統合エンドポイントオプションを提供するConsumerSE。- 戻り値:
- 現在の
BaseIntegrationFlowDefinition。 - 導入:
- 6.1
handleReactive
ReactiveMessageHandlerをターミナルIntegrationFlowオペレーターとして追加します。- パラメーター:
reactiveMessageHandler-ReactiveMessageHandlerを押してフローを終了します。- 戻り値:
- この定義に基づく
IntegrationFlowインスタンス。 - 導入:
- 6.1
handleReactive
public IntegrationFlow handleReactive(ReactiveMessageHandler reactiveMessageHandler, @Nullable ConsumerSE<GenericEndpointSpec<ReactiveMessageHandlerAdapter>> endpointConfigurer) ReactiveMessageHandlerをターミナルIntegrationFlowオペレーターとして追加します。- パラメーター:
reactiveMessageHandler-ReactiveMessageHandlerを押してフローを終了します。endpointConfigurer-ConsumerSE を使用して、ハンドラーのターゲットエンドポイントを構成します。- 戻り値:
- この定義に基づく
IntegrationFlowインスタンス。 - 導入:
- 6.1
to
他のIntegrationFlowインスタンスへの委譲でこのフローを終了します。- パラメーター:
other- 構成するIntegrationFlow。- 戻り値:
- この定義に基づく
IntegrationFlowインスタンス。 - 導入:
- 5.5.4
toReactivePublisher
統合フローを Reactive StreamsPublisherBean として表します。- 型パラメーター:
T- 予想されるpayload型- 戻り値:
- Reactive Streams
Publisher
toReactivePublisher
protected <T> org.reactivestreams.Publisher<Message<T>> toReactivePublisher(boolean autoStartOnSubscribe) 統合フローを Reactive StreamsPublisherBean として表します。- 型パラメーター:
T- 予想されるpayload型- パラメーター:
autoStartOnSubscribe- パブリッシャーへのサブスクリプションが開始されたときに、フローでメッセージの生成と消費を開始します。これが true に設定されている場合、フローはアプリケーションコンテキストによって自動的に開始されないようにマークされます。- 戻り値:
- Reactive Streams
Publisher - 導入:
- 5.5.6
register
protected <S extends ConsumerEndpointSpec<? super S, ? extends MessageHandler>> B register(S endpointSpec, @Nullable ConsumerSE<? super S> endpointConfigurer) registerOutputChannelIfCan
isOutputChannelRequired
protected boolean isOutputChannelRequired()_this
get
checkReuse
extractProxyTarget