クラス IntegrationFlowAdapter
java.lang.ObjectSE
org.springframework.integration.dsl.IntegrationFlowAdapter
- 実装済みのインターフェース一覧:
Aware, BeanNameAware, Lifecycle, Phased, SmartLifecycle, ComponentSourceAware, IntegrationFlow, ManageableLifecycle, ManageableSmartLifecycle
public abstract class IntegrationFlowAdapter
extends ObjectSE
implements IntegrationFlow, ManageableSmartLifecycle, ComponentSourceAware
IntegrationFlow 抽象化の基本 Adapter クラス。#from() サポートメソッドのいずれかを使用して IntegrationFlowDefinition を生成するには、buildFlow() メソッドの実装が必要です。通常、ターゲットサービスの実装に使用されます。
@Component
public class MyFlowAdapter extends IntegrationFlowAdapter {
@Autowired
private ConnectionFactory rabbitConnectionFactory;
@Override
protected IntegrationFlowDefinition<?> buildFlow() {
return from(Amqp.inboundAdapter(this.rabbitConnectionFactory, "myQueue"))
.<String, String>transform(String::toLowerCase)
.channel(c -> c.queue("myFlowAdapterOutput"));
}
}
- 導入:
- 5.0
- 作成者:
- Artem Bilan
フィールド概要
インターフェース SmartLifecycle から継承されたフィールド
DEFAULT_PHASEコンストラクター概要
コンストラクター方法の概要
修飾子と型メソッド説明protected abstract IntegrationFlowDefinition<?> final voidconfigure(IntegrationFlowDefinition<?> flow) EIP メソッドのチェーンを宣言して、提供されたIntegrationFlowDefinitionとの統合フローを構成するためのコールバックベースの関数。protected IntegrationFlowBuilderprotected IntegrationFlowBuilderfrom(ClassSE<?> serviceInterface, @Nullable ConsumerSE<GatewayProxySpec> endpointConfigurer) サービスインターフェースのプロキシからフローを開始します。protected IntegrationFlowDefinition<?> protected IntegrationFlowDefinition<?> protected IntegrationFlowBuilderprotected IntegrationFlowDefinition<?> from(MessageSource<?> messageSource) protected IntegrationFlowDefinition<?> from(MessageSource<?> messageSource, ConsumerSE<SourcePollingChannelAdapterSpec> endpointConfigurer) protected IntegrationFlowDefinition<?> from(MessageChannelSpec<?, ?> messageChannelSpec) protected IntegrationFlowDefinition<?> from(MessageProducerSpec<?, ?> messageProducerSpec) protected IntegrationFlowDefinition<?> from(MessageSourceSpec<?, ? extends MessageSource<?>> messageSourceSpec) protected IntegrationFlowDefinition<?> from(MessageSourceSpec<?, ? extends MessageSource<?>> messageSourceSpec, ConsumerSE<SourcePollingChannelAdapterSpec> endpointConfigurer) protected IntegrationFlowDefinition<?> from(MessagingGatewaySpec<?, ?> inboundGatewaySpec) protected IntegrationFlowDefinition<?> from(MessageProducerSupport messageProducer) protected IntegrationFlowDefinition<?> from(MessagingGatewaySupport inboundGateway) protected IntegrationFlowDefinition<?> from(MessageChannel messageChannel) protected <T> IntegrationFlowBuilderfromSupplier(SupplierSE<T> messageSource) protected <T> IntegrationFlowBuilderfromSupplier(SupplierSE<T> messageSource, ConsumerSE<SourcePollingChannelAdapterSpec> endpointConfigurer) BeanNameAware.setBeanName(String)によって設定された Bean 名を返します。@Nullable StringSEこの Bean の人間が読める形式の説明を返します。@Nullable ObjectSEこの Bean の構成ソースObject(おそらくnull) を返します。@Nullable MessageChannel基本的にフロー入力チャネルである最初のMessageChannelコンポーネントを返します。このフローによって管理される統合コンポーネントのマップを返します(存在する場合)。intgetPhase()booleanbooleanvoidsetBeanName(StringSE name) voidsetComponentDescription(StringSE description) この Bean の人間が読める説明を設定します。voidsetComponentSource(ObjectSE source) この Bean 定義の構成ソースObjectを設定します。voidstart()voidstop()voidstop(RunnableSE callback) クラス ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, toString, wait, waitSE, waitSEインターフェース SmartLifecycle から継承されたメソッド
isPauseable
コンストラクターの詳細
IntegrationFlowAdapter
public IntegrationFlowAdapter()
方法の詳細
setBeanName
- 次で指定:
- インターフェース
BeanNameAware内のsetBeanName
getBeanName
インターフェースからコピーされた説明:ComponentSourceAwareBeanNameAware.setBeanName(String)によって設定された Bean 名を返します。- 次で指定:
- インターフェース
ComponentSourceAware内のgetBeanName - 戻り値:
- Bean 名。
setComponentSource
インターフェースからコピーされた説明:ComponentSourceAwareこの Bean 定義の構成ソースObjectを設定します。通常のBeanDefinitionの場合、これはアプリケーションコンテキストによって自動的に提供されます。Bean が実行時にSingletonBeanRegistry.registerSingleton(String, Object)経由で登録される場合に役立ちます。- 次で指定:
- インターフェース
ComponentSourceAware内のsetComponentSource - パラメーター:
source- 構成ソース
getComponentSource
インターフェースからコピーされた説明:ComponentSourceAwareこの Bean の構成ソースObjectを返します (nullの場合もあります)。通常は (明示的に設定されていない場合は)BeanMetadataElement.getSource()です。- 次で指定:
- インターフェース
ComponentSourceAware内のgetComponentSource - 戻り値:
- Bean の構成ソース (存在する場合)。
setComponentDescription
インターフェースからコピーされた説明:ComponentSourceAwareこの Bean の人間が読める説明を設定します。通常の Bean 定義ではBeanDefinition.getDescription()が使用されます。- 次で指定:
- インターフェース
ComponentSourceAware内のsetComponentDescription - パラメーター:
description- Bean の説明
getComponentDescription
インターフェースからコピーされた説明:ComponentSourceAwareこの Bean の人間が読める形式の説明を返します。通常は (明示的に設定されていない場合は)BeanDefinition.getDescription()です。- 次で指定:
- インターフェース
ComponentSourceAware内のgetComponentDescription - 戻り値:
- Bean の説明 (ある場合)。
configure
インターフェースからコピーされた説明:IntegrationFlowEIP メソッドのチェーンを宣言して、提供されたIntegrationFlowDefinitionとの統合フローを構成するためのコールバックベースの関数。- 次で指定:
- インターフェース
IntegrationFlow内のconfigure - パラメーター:
flow- 構成するIntegrationFlowDefinition
getInputChannel
インターフェースからコピーされた説明:IntegrationFlow基本的にフロー入力チャネルである最初のMessageChannelコンポーネントを返します。- 次で指定:
- インターフェース
IntegrationFlow内のgetInputChannel - 戻り値:
- チャンネル。
getIntegrationComponents
インターフェースからコピーされた説明:IntegrationFlowこのフローによって管理される統合コンポーネントのマップを返します(存在する場合)。- 次で指定:
- インターフェース
IntegrationFlow内のgetIntegrationComponents - 戻り値:
- このフローによって管理される統合コンポーネントのマップ。
start
public void start()- 次で指定:
- インターフェース
Lifecycle内のstart - 次で指定:
- インターフェース
ManageableLifecycle内のstart
stop
- 次で指定:
- インターフェース
SmartLifecycle内のstop
stop
public void stop()- 次で指定:
- インターフェース
Lifecycle内のstop - 次で指定:
- インターフェース
ManageableLifecycle内のstop
isRunning
public boolean isRunning()- 次で指定:
- インターフェース
Lifecycle内のisRunning - 次で指定:
- インターフェース
ManageableLifecycle内のisRunning
isAutoStartup
public boolean isAutoStartup()- 次で指定:
- インターフェース
SmartLifecycle内のisAutoStartup
getPhase
public int getPhase()- 次で指定:
- インターフェース
Phased内のgetPhase - 次で指定:
- インターフェース
SmartLifecycle内のgetPhase
from
from
from
from
protected IntegrationFlowDefinition<?> from(MessageSourceSpec<?, ? extends MessageSource<?>> messageSourceSpec, ConsumerSE<SourcePollingChannelAdapterSpec> endpointConfigurer) from
protected IntegrationFlowDefinition<?> from(MessageSource<?> messageSource, ConsumerSE<SourcePollingChannelAdapterSpec> endpointConfigurer) from
from
from
from
from
from
protected IntegrationFlowDefinition<?> from(MessageSourceSpec<?, ? extends MessageSource<?>> messageSourceSpec) from
fromSupplier
fromSupplier
protected <T> IntegrationFlowBuilder fromSupplier(SupplierSE<T> messageSource, ConsumerSE<SourcePollingChannelAdapterSpec> endpointConfigurer) from
from
protected IntegrationFlowBuilder from(ClassSE<?> serviceInterface, @Nullable ConsumerSE<GatewayProxySpec> endpointConfigurer) サービスインターフェースのプロキシからフローを開始します。- パラメーター:
serviceInterface- サービスインターフェースクラス。endpointConfigurer- ゲートウェイのプロキシ Bean を構成するためのConsumerSE。- 戻り値:
- 新しい
IntegrationFlowBuilder。 - 導入:
- 5.2
from
protected IntegrationFlowBuilder from(org.reactivestreams.Publisher<? extends Message<?>> publisher) buildFlow