public class IntegrationFlowFunctionSupport extends Object
| Modifier and Type | Method and Description |
|---|---|
boolean |
andThenFunction(org.springframework.integration.dsl.IntegrationFlowBuilder flowBuilder,
org.springframework.messaging.MessageChannel outputChannel,
StreamFunctionProperties functionProperties)
Add a
Function bean to the end of an integration flow. |
<I,O> boolean |
andThenFunction(org.reactivestreams.Publisher<?> publisher,
org.springframework.messaging.MessageChannel outputChannel,
StreamFunctionProperties functionProperties) |
<T> boolean |
containsFunction(Class<T> typeOfFunction)
Determines if function specified via 'spring.cloud.stream.function.definition'
property can be located in
FunctionCatalogs. |
<T> boolean |
containsFunction(Class<T> typeOfFunction,
String functionName)
Determines if function specified via 'spring.cloud.stream.function.definition'
property can be located in
FunctionCatalog. |
org.springframework.cloud.function.context.FunctionType |
getCurrentFunctionType() |
org.springframework.integration.dsl.IntegrationFlowBuilder |
integrationFlowForFunction(org.springframework.messaging.SubscribableChannel inputChannel,
org.springframework.messaging.MessageChannel outputChannel) |
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 <T> boolean containsFunction(Class<T> typeOfFunction)
FunctionCatalogs.T - type of functiontypeOfFunction - must be Supplier, Function or Consumertrue if function is already storedpublic <T> boolean containsFunction(Class<T> typeOfFunction, String functionName)
FunctionCatalog.T - type of functiontypeOfFunction - must be Supplier, Function or ConsumerfunctionName - the function name to checktrue if function is already storedpublic 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.IntegrationFlowBuilderIllegalStateException - if the named Supplier can not be located.public org.springframework.integration.dsl.IntegrationFlowBuilder integrationFlowFromProvidedSupplier(Supplier<?> supplier)
IntegrationFlowBuilder from a provided
Supplier.supplier - supplier from which the flow builder will be builtIntegrationFlowBuilderpublic org.springframework.integration.dsl.IntegrationFlowBuilder integrationFlowFromChannel(org.springframework.messaging.SubscribableChannel inputChannel)
inputChannel - channel for which flow we be builtIntegrationFlowBuilderpublic org.springframework.integration.dsl.IntegrationFlowBuilder integrationFlowForFunction(org.springframework.messaging.SubscribableChannel inputChannel,
org.springframework.messaging.MessageChannel outputChannel)
inputChannel - channel for which flow we be builtoutputChannel - channel for which flow we be builtIntegrationFlowBuilderpublic boolean andThenFunction(org.springframework.integration.dsl.IntegrationFlowBuilder flowBuilder,
org.springframework.messaging.MessageChannel outputChannel,
StreamFunctionProperties functionProperties)
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 sentfunctionProperties - the function propertiesFunction was located and added and false if it wasn't.public <I,O> boolean andThenFunction(org.reactivestreams.Publisher<?> publisher,
org.springframework.messaging.MessageChannel outputChannel,
StreamFunctionProperties functionProperties)
I - input of the functionO - output of the functionpublisher - publisher to subscribe tooutputChannel - output channel to which a message will be sentfunctionProperties - function propertiesCopyright © 2019 Pivotal Software, Inc.. All rights reserved.