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"));
}
}
DEFAULT_PHASE| コンストラクターと説明 |
|---|
IntegrationFlowAdapter() |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSEpublic final void configure(IntegrationFlowDefinition<?> flow)
IntegrationFlowIntegrationFlowDefinition との統合フローを構成するためのコールバックベースの関数。IntegrationFlow の configure flow - 構成する IntegrationFlowDefinitionpublic MessageChannel getInputChannel()
IntegrationFlowMessageChannel コンポーネントを返します。IntegrationFlow の getInputChannel public void start()
Lifecycle の start ManageableLifecycle の start public void stop(RunnableSE callback)
SmartLifecycle の stop public void stop()
Lifecycle の stop ManageableLifecycle の stop public boolean isRunning()
Lifecycle の isRunning ManageableLifecycle の isRunning public boolean isAutoStartup()
SmartLifecycle の isAutoStartup public int getPhase()
Phased の getPhase SmartLifecycle の getPhase protected IntegrationFlowDefinition<?> from(StringSE messageChannelName)
protected IntegrationFlowDefinition<?> from(MessageChannel messageChannel)
protected IntegrationFlowDefinition<?> from(StringSE messageChannelName, boolean fixedSubscriber)
protected IntegrationFlowDefinition<?> from(MessageSourceSpec<?,? extends MessageSource<?>> messageSourceSpec, java.util.function.ConsumerSE<SourcePollingChannelAdapterSpec> endpointConfigurer)
protected IntegrationFlowDefinition<?> from(MessageSource<?> messageSource, java.util.function.ConsumerSE<SourcePollingChannelAdapterSpec> endpointConfigurer)
protected IntegrationFlowDefinition<?> from(MessageProducerSupport messageProducer)
protected IntegrationFlowDefinition<?> from(MessageSource<?> messageSource)
protected IntegrationFlowDefinition<?> from(MessagingGatewaySupport inboundGateway)
protected IntegrationFlowDefinition<?> from(MessageChannelSpec<?,?> messageChannelSpec)
protected IntegrationFlowDefinition<?> from(MessageProducerSpec<?,?> messageProducerSpec)
protected IntegrationFlowDefinition<?> from(MessageSourceSpec<?,? extends MessageSource<?>> messageSourceSpec)
protected IntegrationFlowDefinition<?> from(MessagingGatewaySpec<?,?> inboundGatewaySpec)
protected <T> IntegrationFlowBuilder fromSupplier(java.util.function.SupplierSE<T> messageSource)
protected <T> IntegrationFlowBuilder fromSupplier(java.util.function.SupplierSE<T> messageSource, java.util.function.ConsumerSE<SourcePollingChannelAdapterSpec> endpointConfigurer)
protected IntegrationFlowBuilder from(ClassSE<?> serviceInterface)
protected IntegrationFlowBuilder from(ClassSE<?> serviceInterface, @Nullable java.util.function.ConsumerSE<GatewayProxySpec> endpointConfigurer)
serviceInterface - サービスインターフェースクラス。endpointConfigurer - ゲートウェイのプロキシ Bean を構成するための ConsumerSE。IntegrationFlowBuilder。protected IntegrationFlowBuilder from(org.reactivestreams.Publisher<? extends Message<?>> publisher)
protected abstract IntegrationFlowDefinition<?> buildFlow()