Class IntegrationFlows
java.lang.Object
org.springframework.integration.dsl.IntegrationFlows
Deprecated, for removal: This API element is subject to removal in a future version.
The central factory for fluent
IntegrationFlowBuilder
API.- Since:
- 5.0
- Author:
- Artem Bilan, Gary Russell, Oleg Zhurakousky
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic IntegrationFlowBuilder
Deprecated, for removal: This API element is subject to removal in a future version.Populate theMessageChannel
to the newIntegrationFlowBuilder
chain, which becomes as arequestChannel
for the Messaging Gateway(s) built on the provided service interface.static IntegrationFlowBuilder
from
(Class<?> serviceInterface, Consumer<GatewayProxySpec> endpointConfigurer) Deprecated, for removal: This API element is subject to removal in a future version.Populate theMessageChannel
to the newIntegrationFlowBuilder
chain, which becomes as arequestChannel
for the Messaging Gateway(s) built on the provided service interface.static IntegrationFlowBuilder
Deprecated, for removal: This API element is subject to removal in a future version.Populate theMessageChannel
name to the newIntegrationFlowBuilder
chain.static IntegrationFlowBuilder
Deprecated, for removal: This API element is subject to removal in a future version.Populate theMessageChannel
name to the newIntegrationFlowBuilder
chain.static IntegrationFlowBuilder
Deprecated, for removal: This API element is subject to removal in a future version.Populate aFluxMessageChannel
to theIntegrationFlowBuilder
chain and subscribe it to the providedPublisher
.static IntegrationFlowBuilder
from
(MessageSource<?> messageSource) Deprecated, for removal: This API element is subject to removal in a future version.Populate the providedMessageSource
object to theIntegrationFlowBuilder
chain.static IntegrationFlowBuilder
from
(MessageSource<?> messageSource, Consumer<SourcePollingChannelAdapterSpec> endpointConfigurer) Deprecated, for removal: This API element is subject to removal in a future version.Populate the providedMessageSource
object to theIntegrationFlowBuilder
chain.static IntegrationFlowBuilder
from
(IntegrationFlow other) Deprecated, for removal: This API element is subject to removal in a future version.Start the flow with a composition from theIntegrationFlow
.static IntegrationFlowBuilder
from
(MessageChannelSpec<?, ?> messageChannelSpec) Deprecated, for removal: This API element is subject to removal in a future version.Populate theMessageChannel
object to theIntegrationFlowBuilder
chain using the fluent API fromMessageChannelSpec
.static IntegrationFlowBuilder
from
(MessageProducerSpec<?, ?> messageProducerSpec) Deprecated, for removal: This API element is subject to removal in a future version.Populate theMessageProducerSupport
object to theIntegrationFlowBuilder
chain using the fluent API from theMessageProducerSpec
.static IntegrationFlowBuilder
from
(MessageSourceSpec<?, ? extends MessageSource<?>> messageSourceSpec) Deprecated, for removal: This API element is subject to removal in a future version.Populate theMessageSource
object to theIntegrationFlowBuilder
chain using the fluent API from the providedMessageSourceSpec
.static IntegrationFlowBuilder
from
(MessageSourceSpec<?, ? extends MessageSource<?>> messageSourceSpec, Consumer<SourcePollingChannelAdapterSpec> endpointConfigurer) Deprecated, for removal: This API element is subject to removal in a future version.Populate theMessageSource
object to theIntegrationFlowBuilder
chain using the fluent API from the providedMessageSourceSpec
.static IntegrationFlowBuilder
from
(MessagingGatewaySpec<?, ?> inboundGatewaySpec) Deprecated, for removal: This API element is subject to removal in a future version.Populate theMessagingGatewaySupport
object to theIntegrationFlowBuilder
chain using the fluent API from theMessagingGatewaySpec
.static IntegrationFlowBuilder
from
(MessageProducerSupport messageProducer) Deprecated, for removal: This API element is subject to removal in a future version.Populate the providedMessageProducerSupport
object to theIntegrationFlowBuilder
chain.static IntegrationFlowBuilder
from
(MessagingGatewaySupport inboundGateway) Deprecated, for removal: This API element is subject to removal in a future version.Populate the providedMessagingGatewaySupport
object to theIntegrationFlowBuilder
chain.static IntegrationFlowBuilder
from
(MessageChannel messageChannel) Deprecated, for removal: This API element is subject to removal in a future version.Populate the providedMessageChannel
object to theIntegrationFlowBuilder
chain.static <T> IntegrationFlowBuilder
fromSupplier
(Supplier<T> messageSource) Deprecated, for removal: This API element is subject to removal in a future version.ProvidesSupplier
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
(Supplier<T> messageSource, Consumer<SourcePollingChannelAdapterSpec> endpointConfigurer) Deprecated, for removal: This API element is subject to removal in a future version.ProvidesSupplier
as source of messages to the integration flow.
-
Method Details
-
from
Deprecated, for removal: This API element is subject to removal in a future version.Populate theMessageChannel
name to the newIntegrationFlowBuilder
chain. TheIntegrationFlow
inputChannel
.- Parameters:
messageChannelName
- the name of existingMessageChannel
bean. The newDirectChannel
bean will be created on context startup if there is no bean with this name.- Returns:
- new
IntegrationFlowBuilder
.
-
from
Deprecated, for removal: This API element is subject to removal in a future version.Populate theMessageChannel
name to the newIntegrationFlowBuilder
chain. Typically for theFixedSubscriberChannel
together withfixedSubscriber = true
. TheIntegrationFlow
inputChannel
.- Parameters:
messageChannelName
- the name forDirectChannel
orFixedSubscriberChannel
to be created on context startup, not reference. TheMessageChannel
depends on thefixedSubscriber
boolean argument.fixedSubscriber
- the boolean flag to determine if resultMessageChannel
should beDirectChannel
, iffalse
orFixedSubscriberChannel
, iftrue
.- Returns:
- new
IntegrationFlowBuilder
. - See Also:
-
from
Deprecated, for removal: This API element is subject to removal in a future version.Populate theMessageChannel
object to theIntegrationFlowBuilder
chain using the fluent API fromMessageChannelSpec
. TheIntegrationFlow
inputChannel
.- Parameters:
messageChannelSpec
- the MessageChannelSpec to populateMessageChannel
instance.- Returns:
- new
IntegrationFlowBuilder
. - See Also:
-
from
Deprecated, for removal: This API element is subject to removal in a future version.Populate the providedMessageChannel
object to theIntegrationFlowBuilder
chain. TheIntegrationFlow
inputChannel
.- Parameters:
messageChannel
- theMessageChannel
to populate.- Returns:
- new
IntegrationFlowBuilder
.
-
from
public static IntegrationFlowBuilder from(MessageSourceSpec<?, ? extends MessageSource<?>> messageSourceSpec) Deprecated, for removal: This API element is subject to removal in a future version.Populate theMessageSource
object to theIntegrationFlowBuilder
chain using the fluent API from the providedMessageSourceSpec
. TheIntegrationFlow
startMessageSource
.- Parameters:
messageSourceSpec
- theMessageSourceSpec
to use.- Returns:
- new
IntegrationFlowBuilder
. - See Also:
-
from
public static IntegrationFlowBuilder from(MessageSourceSpec<?, ? extends MessageSource<?>> messageSourceSpec, Consumer<SourcePollingChannelAdapterSpec> endpointConfigurer) Deprecated, for removal: This API element is subject to removal in a future version.Populate theMessageSource
object to theIntegrationFlowBuilder
chain using the fluent API from the providedMessageSourceSpec
. TheIntegrationFlow
startMessageSource
.- Parameters:
messageSourceSpec
- theMessageSourceSpec
to use.endpointConfigurer
- theConsumer
to provide more options for theSourcePollingChannelAdapterFactoryBean
.- Returns:
- new
IntegrationFlowBuilder
. - See Also:
-
fromSupplier
Deprecated, for removal: This API element is subject to removal in a future version.ProvidesSupplier
as source of messages to the integration flow which will be triggered by the application context's default poller (which must be declared).- Type Parameters:
T
- the supplier type.- Parameters:
messageSource
- theSupplier
to populate.- Returns:
- new
IntegrationFlowBuilder
. - See Also:
-
fromSupplier
public static <T> IntegrationFlowBuilder fromSupplier(Supplier<T> messageSource, Consumer<SourcePollingChannelAdapterSpec> endpointConfigurer) Deprecated, for removal: This API element is subject to removal in a future version.ProvidesSupplier
as source of messages to the integration flow. which will be triggered by a providedSourcePollingChannelAdapter
.- Type Parameters:
T
- the supplier type.- Parameters:
messageSource
- theSupplier
to populate.endpointConfigurer
- theConsumer
to provide more options for theSourcePollingChannelAdapterFactoryBean
.- Returns:
- new
IntegrationFlowBuilder
. - See Also:
-
from
Deprecated, for removal: This API element is subject to removal in a future version.Populate the providedMessageSource
object to theIntegrationFlowBuilder
chain. TheIntegrationFlow
startMessageSource
.- Parameters:
messageSource
- theMessageSource
to populate.- Returns:
- new
IntegrationFlowBuilder
. - See Also:
-
from
public static IntegrationFlowBuilder from(MessageSource<?> messageSource, @Nullable Consumer<SourcePollingChannelAdapterSpec> endpointConfigurer) Deprecated, for removal: This API element is subject to removal in a future version.Populate the providedMessageSource
object to theIntegrationFlowBuilder
chain. TheIntegrationFlow
startMessageSource
. In addition useSourcePollingChannelAdapterSpec
to provide options for the underlyingSourcePollingChannelAdapter
endpoint.- Parameters:
messageSource
- theMessageSource
to populate.endpointConfigurer
- theConsumer
to provide more options for theSourcePollingChannelAdapterFactoryBean
.- Returns:
- new
IntegrationFlowBuilder
. - See Also:
-
from
Deprecated, for removal: This API element is subject to removal in a future version.Populate theMessageProducerSupport
object to theIntegrationFlowBuilder
chain using the fluent API from theMessageProducerSpec
. TheIntegrationFlow
startMessageProducer
.- Parameters:
messageProducerSpec
- theMessageProducerSpec
to use.- Returns:
- new
IntegrationFlowBuilder
. - See Also:
-
from
Deprecated, for removal: This API element is subject to removal in a future version.Populate the providedMessageProducerSupport
object to theIntegrationFlowBuilder
chain. TheIntegrationFlow
startMessageProducer
.- Parameters:
messageProducer
- theMessageProducerSupport
to populate.- Returns:
- new
IntegrationFlowBuilder
.
-
from
Deprecated, for removal: This API element is subject to removal in a future version.Populate theMessagingGatewaySupport
object to theIntegrationFlowBuilder
chain using the fluent API from theMessagingGatewaySpec
. TheIntegrationFlow
startMessagingGateway
.- Parameters:
inboundGatewaySpec
- theMessagingGatewaySpec
to use.- Returns:
- new
IntegrationFlowBuilder
.
-
from
Deprecated, for removal: This API element is subject to removal in a future version.Populate the providedMessagingGatewaySupport
object to theIntegrationFlowBuilder
chain. TheIntegrationFlow
startMessageProducer
.- Parameters:
inboundGateway
- theMessagingGatewaySupport
to populate.- Returns:
- new
IntegrationFlowBuilder
.
-
from
Deprecated, for removal: This API element is subject to removal in a future version.Populate theMessageChannel
to the newIntegrationFlowBuilder
chain, which becomes as arequestChannel
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 theIntegrationFlow
bean name plus.gateway
suffix.- Parameters:
serviceInterface
- the service interface class with an optionalMessagingGateway
annotation.- Returns:
- new
IntegrationFlowBuilder
.
-
from
public static IntegrationFlowBuilder from(Class<?> serviceInterface, @Nullable Consumer<GatewayProxySpec> endpointConfigurer) Deprecated, for removal: This API element is subject to removal in a future version.Populate theMessageChannel
to the newIntegrationFlowBuilder
chain, which becomes as arequestChannel
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
.- Parameters:
serviceInterface
- the service interface class with an optionalMessagingGateway
annotation.endpointConfigurer
- theConsumer
to configure proxy bean for gateway.- Returns:
- new
IntegrationFlowBuilder
. - Since:
- 5.2
-
from
public static IntegrationFlowBuilder from(org.reactivestreams.Publisher<? extends Message<?>> publisher) Deprecated, for removal: This API element is subject to removal in a future version.Populate aFluxMessageChannel
to theIntegrationFlowBuilder
chain and subscribe it to the providedPublisher
.- Parameters:
publisher
- thePublisher
to subscribe to.- Returns:
- new
IntegrationFlowBuilder
.
-
from
Deprecated, for removal: This API element is subject to removal in a future version.Start the flow with a composition from theIntegrationFlow
.- Parameters:
other
- theIntegrationFlow
from which to compose.- Returns:
- new
IntegrationFlowBuilder
. - Since:
- 5.5.4
-
IntegrationFlow
interface.