クラス IntegrationFlowAdapter
java.lang.ObjectSE
org.springframework.integration.dsl.IntegrationFlowAdapter
- 実装されたすべてのインターフェース:
Lifecycle
、Phased
、SmartLifecycle
、IntegrationFlow
、ManageableLifecycle
、ManageableSmartLifecycle
public abstract class IntegrationFlowAdapter
extends ObjectSE
implements IntegrationFlow, ManageableSmartLifecycle
IntegrationFlow
抽象化の基本 Adapter
クラス。from(java.lang.String)
サポートメソッドの 1 つを使用して 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
フィールドサマリー
インターフェース org.springframework.context.SmartLifecycle から継承されたフィールド
DEFAULT_PHASE
コンストラクターのサマリー
コンストラクターメソッドのサマリー
修飾子と型メソッド説明protected abstract IntegrationFlowDefinition<?>
final void
configure
(IntegrationFlowDefinition<?> flow) EIP メソッドのチェーンを宣言して、提供されたIntegrationFlowDefinition
との統合フローを構成するためのコールバックベースの関数。protected IntegrationFlowBuilder
protected IntegrationFlowBuilder
from
(ClassSE<?> serviceInterface, ConsumerSE<GatewayProxySpec> endpointConfigurer) サービスインターフェースのプロキシからフローを開始します。protected IntegrationFlowDefinition<?>
protected IntegrationFlowDefinition<?>
protected IntegrationFlowBuilder
protected 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> IntegrationFlowBuilder
fromSupplier
(SupplierSE<T> messageSource) protected <T> IntegrationFlowBuilder
fromSupplier
(SupplierSE<T> messageSource, ConsumerSE<SourcePollingChannelAdapterSpec> endpointConfigurer) 基本的にフロー入力チャネルである最初のMessageChannel
コンポーネントを返します。このフローによって管理される統合コンポーネントのマップを返します(存在する場合)。int
getPhase()
boolean
boolean
void
start()
void
stop()
void
stop
(RunnableSE callback)
コンストラクターの詳細
IntegrationFlowAdapter
public IntegrationFlowAdapter()
メソッドの詳細
configure
インターフェースからコピーされた説明:IntegrationFlow
EIP メソッドのチェーンを宣言して、提供された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 を構成するためのConsumer
SE。- 戻り値:
- 新しい
IntegrationFlowBuilder
。 - 導入:
- 5.2
from
protected IntegrationFlowBuilder from(org.reactivestreams.Publisher<? extends Message<?>> publisher) buildFlow