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
Fields inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
logger
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE
Fields inherited from interface org.springframework.context.SmartLifecycle
DEFAULT_PHASE
-
Constructor Summary
ModifierConstructorDescriptionprotected
R2dbcMessageHandlerSpec
(org.springframework.data.r2dbc.core.R2dbcEntityOperations r2dbcEntityOperations) -
Method Summary
Modifier and TypeMethodDescriptionSet a SpEL expression to evaluate aCriteria
for query to execute.criteria
(Function<Message<P>, org.springframework.data.relational.core.query.Criteria> criteriaFunction) Set aFunction
to evaluate aCriteria
for query to execute.criteria
(Expression criteriaExpression) Set a SpEL expression to evaluate aCriteria
for query to execute.Set aR2dbcMessageHandler.Type
for query to execute.queryTypeExpression
(String queryTypeExpression) Set a SpEL expression to evaluate aR2dbcMessageHandler.Type
for query to execute.queryTypeExpression
(Expression queryTypeExpression) Set a SpEL expression to evaluate aR2dbcMessageHandler.Type
for query to execute.queryTypeFunction
(Function<Message<P>, R2dbcMessageHandler.Type> queryTypeFunction) Set aFunction
to evaluate aR2dbcMessageHandler.Type
for query to execute against a request message.Specify a table in the target database to execute the query.tableNameExpression
(String tableNameExpression) Set a SpEL expression to evaluate a table name at runtime against request message.tableNameExpression
(Expression tableNameExpression) Set a SpEL expression to evaluate a table name at runtime against request message.tableNameFunction
(Function<Message<P>, String> tableNameFunction) Set aFunction
to evaluate a table name at runtime against request message.Set a SpEL expression to evaluate aMap
for name-value pairs to bind as parameters into a query.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
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
-