Class R2dbcMessageHandlerSpec
java.lang.Object
org.springframework.beans.factory.config.AbstractFactoryBean<T>
org.springframework.integration.dsl.IntegrationComponentSpec<S,H>
org.springframework.integration.dsl.MessageHandlerSpec<S,ReactiveMessageHandlerAdapter>
org.springframework.integration.dsl.ReactiveMessageHandlerSpec<R2dbcMessageHandlerSpec,R2dbcMessageHandler>
org.springframework.integration.r2dbc.dsl.R2dbcMessageHandlerSpec
- All Implemented Interfaces:
Aware
,BeanClassLoaderAware
,BeanFactoryAware
,DisposableBean
,FactoryBean<ReactiveMessageHandlerAdapter>
,InitializingBean
,Lifecycle
,Phased
,SmartLifecycle
,ComponentsRegistration
public class R2dbcMessageHandlerSpec extends ReactiveMessageHandlerSpec<R2dbcMessageHandlerSpec,R2dbcMessageHandler>
The
ReactiveMessageHandlerSpec
for the R2dbcMessageHandler
.- Since:
- 5.4
- Author:
- Artem Bilan
-
Field Summary
Fields inherited from class org.springframework.integration.dsl.ReactiveMessageHandlerSpec
reactiveMessageHandler
Fields inherited from class org.springframework.integration.dsl.IntegrationComponentSpec
PARSER, target
-
Constructor Summary
Constructors Modifier Constructor Description protected
R2dbcMessageHandlerSpec(org.springframework.data.r2dbc.core.R2dbcEntityOperations r2dbcEntityOperations)
-
Method Summary
Modifier and Type Method Description R2dbcMessageHandlerSpec
criteria(String criteriaExpression)
Set a SpEL expression to evaluate aCriteria
for query to execute.<P> R2dbcMessageHandlerSpec
criteria(Function<Message<P>,org.springframework.data.relational.core.query.Criteria> criteriaFunction)
Set aFunction
to evaluate aCriteria
for query to execute.R2dbcMessageHandlerSpec
criteria(Expression criteriaExpression)
Set a SpEL expression to evaluate aCriteria
for query to execute.R2dbcMessageHandlerSpec
queryType(R2dbcMessageHandler.Type type)
Set aR2dbcMessageHandler.Type
for query to execute.R2dbcMessageHandlerSpec
queryTypeExpression(String queryTypeExpression)
Set a SpEL expression to evaluate aR2dbcMessageHandler.Type
for query to execute.R2dbcMessageHandlerSpec
queryTypeExpression(Expression queryTypeExpression)
Set a SpEL expression to evaluate aR2dbcMessageHandler.Type
for query to execute.<P> R2dbcMessageHandlerSpec
queryTypeFunction(Function<Message<P>,R2dbcMessageHandler.Type> queryTypeFunction)
Set aFunction
to evaluate aR2dbcMessageHandler.Type
for query to execute against a request message.R2dbcMessageHandlerSpec
tableName(String tableName)
Specify a table in the target database to execute the query.R2dbcMessageHandlerSpec
tableNameExpression(String tableNameExpression)
Set a SpEL expression to evaluate a table name at runtime against request message.R2dbcMessageHandlerSpec
tableNameExpression(Expression tableNameExpression)
Set a SpEL expression to evaluate a table name at runtime against request message.<P> R2dbcMessageHandlerSpec
tableNameFunction(Function<Message<P>,String> tableNameFunction)
Set aFunction
to evaluate a table name at runtime against request message.R2dbcMessageHandlerSpec
values(String valuesExpression)
Set a SpEL expression to evaluate aMap
for name-value pairs to bind as parameters into a query.<P> R2dbcMessageHandlerSpec
values(Function<Message<P>,Map<String,?>> valuesFunction)
R2dbcMessageHandlerSpec
values(Expression valuesExpression)
Set a SpEL expression to evaluate aMap
for name-value pairs to bind as parameters into a query.Methods inherited from class org.springframework.integration.dsl.ReactiveMessageHandlerSpec
getComponentsToRegister
Methods inherited from class org.springframework.integration.dsl.IntegrationComponentSpec
_this, createInstance, destroyInstance, doGet, get, getId, getObjectType, getPhase, id, isAutoStartup, isRunning, start, stop, stop
Methods inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
afterPropertiesSet, destroy, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton
-
Constructor Details
-
R2dbcMessageHandlerSpec
protected R2dbcMessageHandlerSpec(org.springframework.data.r2dbc.core.R2dbcEntityOperations r2dbcEntityOperations)
-
-
Method Details
-
queryType
Set aR2dbcMessageHandler.Type
for query to execute.- Parameters:
type
- theR2dbcMessageHandler.Type
to use.- Returns:
- the spec
-
queryTypeFunction
public <P> R2dbcMessageHandlerSpec queryTypeFunction(Function<Message<P>,R2dbcMessageHandler.Type> queryTypeFunction)Set aFunction
to evaluate aR2dbcMessageHandler.Type
for query to execute against a request message.- Type Parameters:
P
- the payload type.- Parameters:
queryTypeFunction
- the function to use.- Returns:
- the spec
-
queryTypeExpression
Set a SpEL expression to evaluate aR2dbcMessageHandler.Type
for query to execute.- Parameters:
queryTypeExpression
- the expression to use.- Returns:
- the spec
-
queryTypeExpression
Set a SpEL expression to evaluate aR2dbcMessageHandler.Type
for query to execute.- Parameters:
queryTypeExpression
- the expression to use.- Returns:
- the spec
-
tableName
Specify a table in the target database to execute the query.- Parameters:
tableName
- the name of the table to use.- Returns:
- the spec
-
tableNameFunction
public <P> R2dbcMessageHandlerSpec tableNameFunction(Function<Message<P>,String> tableNameFunction)Set aFunction
to evaluate a table name at runtime against request message.- Type Parameters:
P
- the payload type.- Parameters:
tableNameFunction
- the function to use.- Returns:
- the spec
-
tableNameExpression
Set a SpEL expression to evaluate a table name at runtime against request message.- Parameters:
tableNameExpression
- the expression to use.- Returns:
- the spec
-
tableNameExpression
Set a SpEL expression to evaluate a table name at runtime against request message.- Parameters:
tableNameExpression
- the expression to use.- Returns:
- the spec
-
values
- Type Parameters:
P
- the payload type.- Parameters:
valuesFunction
- the function to use.- Returns:
- the spec
-
values
Set a SpEL expression to evaluate aMap
for name-value pairs to bind as parameters into a query.- Parameters:
valuesExpression
- the expression to use.- Returns:
- the spec
-
values
Set a SpEL expression to evaluate aMap
for name-value pairs to bind as parameters into a query.- Parameters:
valuesExpression
- the expression to use.- Returns:
- the spec
-
criteria
public <P> R2dbcMessageHandlerSpec criteria(Function<Message<P>,org.springframework.data.relational.core.query.Criteria> criteriaFunction)Set aFunction
to evaluate aCriteria
for query to execute.- Type Parameters:
P
- the payload type.- Parameters:
criteriaFunction
- the function to use.- Returns:
- the spec
-
criteria
Set a SpEL expression to evaluate aCriteria
for query to execute.- Parameters:
criteriaExpression
- the expression to use.- Returns:
- the spec
-
criteria
Set a SpEL expression to evaluate aCriteria
for query to execute.- Parameters:
criteriaExpression
- the expression to use.- Returns:
- the spec
-