public class IntegrationFlowFunctionSupport extends Object
Constructor and Description |
---|
IntegrationFlowFunctionSupport(org.springframework.cloud.stream.function.FunctionCatalogWrapper functionCatalog,
org.springframework.cloud.function.context.catalog.FunctionInspector functionInspector,
CompositeMessageConverterFactory messageConverterFactory,
StreamFunctionProperties functionProperties) |
Modifier and Type | Method and Description |
---|---|
<I,O> boolean |
andThenFunction(org.springframework.integration.dsl.IntegrationFlowBuilder flowBuilder,
org.springframework.messaging.MessageChannel outputChannel)
Add a
Function bean to the end of an integration flow. |
org.springframework.cloud.function.context.FunctionType |
getCurrentFunctionType() |
<O> org.springframework.integration.dsl.IntegrationFlowBuilder |
integrationFlowForFunction(org.springframework.messaging.SubscribableChannel inputChannel,
org.springframework.messaging.MessageChannel outputChannel) |
<O> org.springframework.integration.dsl.IntegrationFlowBuilder |
integrationFlowFromChannel(org.springframework.messaging.SubscribableChannel inputChannel) |
org.springframework.integration.dsl.IntegrationFlowBuilder |
integrationFlowFromNamedSupplier()
Create an instance of the
IntegrationFlowBuilder from a Supplier bean available in the context. |
org.springframework.integration.dsl.IntegrationFlowBuilder |
integrationFlowFromProvidedSupplier(Supplier<?> supplier)
Create an instance of the
IntegrationFlowBuilder from a provided Supplier . |
public IntegrationFlowFunctionSupport(org.springframework.cloud.stream.function.FunctionCatalogWrapper functionCatalog, org.springframework.cloud.function.context.catalog.FunctionInspector functionInspector, CompositeMessageConverterFactory messageConverterFactory, StreamFunctionProperties functionProperties)
functionCatalog
- functionInspector
- messageConverterFactory
- functionProperties
- public org.springframework.cloud.function.context.FunctionType getCurrentFunctionType()
public org.springframework.integration.dsl.IntegrationFlowBuilder integrationFlowFromNamedSupplier()
IntegrationFlowBuilder
from a Supplier
bean available in the context.
The name of the bean must be provided via `spring.cloud.stream.function.definition` property.IntegrationFlowBuilder
IllegalStateException
- if the named Supplier can not be located.public org.springframework.integration.dsl.IntegrationFlowBuilder integrationFlowFromProvidedSupplier(Supplier<?> supplier)
IntegrationFlowBuilder
from a provided Supplier
.IntegrationFlowBuilder
public <O> org.springframework.integration.dsl.IntegrationFlowBuilder integrationFlowFromChannel(org.springframework.messaging.SubscribableChannel inputChannel)
inputChannel
- public <O> org.springframework.integration.dsl.IntegrationFlowBuilder integrationFlowForFunction(org.springframework.messaging.SubscribableChannel inputChannel, org.springframework.messaging.MessageChannel outputChannel)
inputChannel
- outputChannel
- public <I,O> boolean andThenFunction(org.springframework.integration.dsl.IntegrationFlowBuilder flowBuilder, org.springframework.messaging.MessageChannel outputChannel)
Function
bean to the end of an integration flow.
The name of the bean must be provided via `spring.cloud.stream.function.definition` property.
NOTE: If this method returns true, the integration flow is now represented
as a Reactive Streams Publisher
bean.
flowBuilder
- instance of the IntegrationFlowBuilder
representing
the current state of the integration flowoutputChannel
- channel where the output of a function will be sentFunction
was located and added and false if it wasn't.Copyright © 2018 Pivotal Software, Inc.. All rights reserved.