public final class IntegrationFlows extends Object
IntegrationFlowBuilder
API.IntegrationFlowBeanPostProcessor
Modifier and Type | Method and Description |
---|---|
static IntegrationFlowBuilder |
from(Class<?> serviceInterface)
Populate the
MessageChannel to the new IntegrationFlowBuilder
chain, which becomes as a requestChannel for the Messaging Gateway(s) built
on the provided service interface. |
static IntegrationFlowBuilder |
from(Class<?> serviceInterface,
java.util.function.Consumer<GatewayProxySpec> endpointConfigurer)
Populate the
MessageChannel to the new IntegrationFlowBuilder
chain, which becomes as a requestChannel for the Messaging Gateway(s) built
on the provided service interface. |
static IntegrationFlowBuilder |
from(MessageChannel messageChannel)
Populate the provided
MessageChannel object to the IntegrationFlowBuilder chain. |
static IntegrationFlowBuilder |
from(MessageChannelSpec<?,?> messageChannelSpec)
Populate the
MessageChannel object to the
IntegrationFlowBuilder chain using the fluent API from MessageChannelSpec . |
static IntegrationFlowBuilder |
from(MessageProducerSpec<?,?> messageProducerSpec)
Populate the
MessageProducerSupport object to the IntegrationFlowBuilder chain
using the fluent API from the MessageProducerSpec . |
static IntegrationFlowBuilder |
from(MessageProducerSupport messageProducer)
Populate the provided
MessageProducerSupport object to the IntegrationFlowBuilder chain. |
static IntegrationFlowBuilder |
from(MessageSource<?> messageSource)
Populate the provided
MessageSource object to the IntegrationFlowBuilder chain. |
static IntegrationFlowBuilder |
from(MessageSource<?> messageSource,
java.util.function.Consumer<SourcePollingChannelAdapterSpec> endpointConfigurer)
Populate the provided
MessageSource object to the IntegrationFlowBuilder chain. |
static IntegrationFlowBuilder |
from(MessageSourceSpec<?,? extends MessageSource<?>> messageSourceSpec)
Populate the
MessageSource object to the IntegrationFlowBuilder chain
using the fluent API from the provided MessageSourceSpec . |
static IntegrationFlowBuilder |
from(MessageSourceSpec<?,? extends MessageSource<?>> messageSourceSpec,
java.util.function.Consumer<SourcePollingChannelAdapterSpec> endpointConfigurer)
Populate the
MessageSource object to the IntegrationFlowBuilder chain
using the fluent API from the provided MessageSourceSpec . |
static IntegrationFlowBuilder |
from(MessagingGatewaySpec<?,?> inboundGatewaySpec)
Populate the
MessagingGatewaySupport object to the IntegrationFlowBuilder chain
using the fluent API from the MessagingGatewaySpec . |
static IntegrationFlowBuilder |
from(MessagingGatewaySupport inboundGateway)
Populate the provided
MessagingGatewaySupport object to the IntegrationFlowBuilder chain. |
static IntegrationFlowBuilder |
from(org.reactivestreams.Publisher<? extends Message<?>> publisher)
Populate a
FluxMessageChannel to the IntegrationFlowBuilder chain
and subscribe it to the provided Publisher . |
static IntegrationFlowBuilder |
from(String messageChannelName)
Populate the
MessageChannel name to the new IntegrationFlowBuilder chain. |
static IntegrationFlowBuilder |
from(String messageChannelName,
boolean fixedSubscriber)
Populate the
MessageChannel name to the new IntegrationFlowBuilder chain. |
static <T> IntegrationFlowBuilder |
fromSupplier(java.util.function.Supplier<T> messageSource)
Provides
Supplier as source of messages to the integration flow which will
be triggered by the application context's default poller (which must be declared). |
static <T> IntegrationFlowBuilder |
fromSupplier(java.util.function.Supplier<T> messageSource,
java.util.function.Consumer<SourcePollingChannelAdapterSpec> endpointConfigurer)
Provides
Supplier as source of messages to the integration flow. |
public static IntegrationFlowBuilder from(String messageChannelName)
MessageChannel
name to the new IntegrationFlowBuilder
chain.
The IntegrationFlow
inputChannel
.messageChannelName
- the name of existing MessageChannel
bean.
The new DirectChannel
bean will be created on context startup
if there is no bean with this name.IntegrationFlowBuilder
.public static IntegrationFlowBuilder from(String messageChannelName, boolean fixedSubscriber)
MessageChannel
name to the new IntegrationFlowBuilder
chain.
Typically for the FixedSubscriberChannel
together
with fixedSubscriber = true
.
The IntegrationFlow
inputChannel
.messageChannelName
- the name for DirectChannel
or
FixedSubscriberChannel
to be created on context startup, not reference.
The MessageChannel
depends on the fixedSubscriber
boolean argument.fixedSubscriber
- the boolean flag to determine if result MessageChannel
should
be DirectChannel
, if false
or
FixedSubscriberChannel
, if true
.IntegrationFlowBuilder
.DirectChannel
,
FixedSubscriberChannel
public static IntegrationFlowBuilder from(MessageChannelSpec<?,?> messageChannelSpec)
MessageChannel
object to the
IntegrationFlowBuilder
chain using the fluent API from MessageChannelSpec
.
The IntegrationFlow
inputChannel
.messageChannelSpec
- the MessageChannelSpec to populate MessageChannel
instance.IntegrationFlowBuilder
.MessageChannels
public static IntegrationFlowBuilder from(MessageChannel messageChannel)
MessageChannel
object to the IntegrationFlowBuilder
chain.
The IntegrationFlow
inputChannel
.messageChannel
- the MessageChannel
to populate.IntegrationFlowBuilder
.public static IntegrationFlowBuilder from(MessageSourceSpec<?,? extends MessageSource<?>> messageSourceSpec)
MessageSource
object to the IntegrationFlowBuilder
chain
using the fluent API from the provided MessageSourceSpec
.
The IntegrationFlow
startMessageSource
.messageSourceSpec
- the MessageSourceSpec
to use.IntegrationFlowBuilder
.and its implementations.
public static IntegrationFlowBuilder from(MessageSourceSpec<?,? extends MessageSource<?>> messageSourceSpec, java.util.function.Consumer<SourcePollingChannelAdapterSpec> endpointConfigurer)
MessageSource
object to the IntegrationFlowBuilder
chain
using the fluent API from the provided MessageSourceSpec
.
The IntegrationFlow
startMessageSource
.messageSourceSpec
- the MessageSourceSpec
to use.endpointConfigurer
- the Consumer
to provide more options for the
SourcePollingChannelAdapterFactoryBean
.IntegrationFlowBuilder
.MessageSourceSpec
,
SourcePollingChannelAdapterSpec
public static <T> IntegrationFlowBuilder fromSupplier(java.util.function.Supplier<T> messageSource)
Supplier
as source of messages to the integration flow which will
be triggered by the application context's default poller (which must be declared).T
- the supplier type.messageSource
- the Supplier
to populate.IntegrationFlowBuilder
.Supplier
public static <T> IntegrationFlowBuilder fromSupplier(java.util.function.Supplier<T> messageSource, java.util.function.Consumer<SourcePollingChannelAdapterSpec> endpointConfigurer)
Supplier
as source of messages to the integration flow.
which will be triggered by a provided
SourcePollingChannelAdapter
.T
- the supplier type.messageSource
- the Supplier
to populate.endpointConfigurer
- the Consumer
to provide more options for the
SourcePollingChannelAdapterFactoryBean
.IntegrationFlowBuilder
.Supplier
public static IntegrationFlowBuilder from(MessageSource<?> messageSource)
MessageSource
object to the IntegrationFlowBuilder
chain.
The IntegrationFlow
startMessageSource
.messageSource
- the MessageSource
to populate.IntegrationFlowBuilder
.MessageSource
public static IntegrationFlowBuilder from(MessageSource<?> messageSource, @Nullable java.util.function.Consumer<SourcePollingChannelAdapterSpec> endpointConfigurer)
MessageSource
object to the IntegrationFlowBuilder
chain.
The IntegrationFlow
startMessageSource
.
In addition use SourcePollingChannelAdapterSpec
to provide options for the underlying
SourcePollingChannelAdapter
endpoint.messageSource
- the MessageSource
to populate.endpointConfigurer
- the Consumer
to provide more options for the
SourcePollingChannelAdapterFactoryBean
.IntegrationFlowBuilder
.MessageSource
,
SourcePollingChannelAdapterSpec
public static IntegrationFlowBuilder from(MessageProducerSpec<?,?> messageProducerSpec)
MessageProducerSupport
object to the IntegrationFlowBuilder
chain
using the fluent API from the MessageProducerSpec
.
The IntegrationFlow
startMessageProducer
.messageProducerSpec
- the MessageProducerSpec
to use.IntegrationFlowBuilder
.MessageProducerSpec
public static IntegrationFlowBuilder from(MessageProducerSupport messageProducer)
MessageProducerSupport
object to the IntegrationFlowBuilder
chain.
The IntegrationFlow
startMessageProducer
.messageProducer
- the MessageProducerSupport
to populate.IntegrationFlowBuilder
.public static IntegrationFlowBuilder from(MessagingGatewaySpec<?,?> inboundGatewaySpec)
MessagingGatewaySupport
object to the IntegrationFlowBuilder
chain
using the fluent API from the MessagingGatewaySpec
.
The IntegrationFlow
startMessagingGateway
.inboundGatewaySpec
- the MessagingGatewaySpec
to use.IntegrationFlowBuilder
.public static IntegrationFlowBuilder from(MessagingGatewaySupport inboundGateway)
MessagingGatewaySupport
object to the IntegrationFlowBuilder
chain.
The IntegrationFlow
startMessageProducer
.inboundGateway
- the MessagingGatewaySupport
to populate.IntegrationFlowBuilder
.public static IntegrationFlowBuilder from(Class<?> serviceInterface)
MessageChannel
to the new IntegrationFlowBuilder
chain, which becomes as a requestChannel
for the Messaging Gateway(s) built
on the provided service interface.
A gateway proxy bean for provided service interface is registered under a name
from the
MessagingGateway.name()
if present
or from the IntegrationFlow
bean name plus .gateway
suffix.
serviceInterface
- the service interface class with an optional
MessagingGateway
annotation.IntegrationFlowBuilder
.public static IntegrationFlowBuilder from(Class<?> serviceInterface, @Nullable java.util.function.Consumer<GatewayProxySpec> endpointConfigurer)
MessageChannel
to the new IntegrationFlowBuilder
chain, which becomes as a requestChannel
for the Messaging Gateway(s) built
on the provided service interface.
A gateway proxy bean for provided service interface is based on the options
configured via provided Consumer
.
serviceInterface
- the service interface class with an optional
MessagingGateway
annotation.endpointConfigurer
- the Consumer
to configure proxy bean for gateway.IntegrationFlowBuilder
.public static IntegrationFlowBuilder from(org.reactivestreams.Publisher<? extends Message<?>> publisher)
FluxMessageChannel
to the IntegrationFlowBuilder
chain
and subscribe it to the provided Publisher
.publisher
- the Publisher
to subscribe to.IntegrationFlowBuilder
.