Class R2dbcMessageSourceSpec
java.lang.Object
org.springframework.beans.factory.config.AbstractFactoryBean<T>
org.springframework.integration.dsl.IntegrationComponentSpec<S,H>
org.springframework.integration.dsl.MessageSourceSpec<R2dbcMessageSourceSpec,R2dbcMessageSource>
org.springframework.integration.r2dbc.dsl.R2dbcMessageSourceSpec
- All Implemented Interfaces:
Aware,BeanClassLoaderAware,BeanFactoryAware,DisposableBean,FactoryBean<R2dbcMessageSource>,InitializingBean,Lifecycle,Phased,SmartLifecycle
public class R2dbcMessageSourceSpec extends MessageSourceSpec<R2dbcMessageSourceSpec,R2dbcMessageSource>
The
MessageSourceSpec for the R2dbcMessageSource.- Since:
- 5.4
- Author:
- Artem Bilan
-
Field Summary
Fields inherited from class org.springframework.integration.dsl.IntegrationComponentSpec
PARSER, target -
Constructor Summary
Constructors Modifier Constructor Description protectedR2dbcMessageSourceSpec(org.springframework.data.r2dbc.core.R2dbcEntityOperations r2dbcEntityOperations, String query)protectedR2dbcMessageSourceSpec(org.springframework.data.r2dbc.core.R2dbcEntityOperations r2dbcEntityOperations, Expression queryExpression) -
Method Summary
Modifier and Type Method Description R2dbcMessageSourceSpecbindFunction(BiFunction<DatabaseClient.GenericExecuteSpec,?,DatabaseClient.GenericExecuteSpec> bindFunction)Set aBiFunctionwhich is used to bind parameters into the update query.R2dbcMessageSourceSpecexpectSingleResult(boolean expectSingleResult)The flag to manage which find* method to invoke onR2dbcEntityOperations.R2dbcMessageSourceSpecpayloadType(Class<?> payloadType)Set the expected payload type.R2dbcMessageSourceSpecupdateSql(String updateSql)Configure an update query.Methods inherited from class org.springframework.integration.dsl.IntegrationComponentSpec
_this, createInstance, destroyInstance, doGet, get, getId, getObjectType, getPhase, id, isAutoStartup, isRunning, start, stop, stopMethods inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
afterPropertiesSet, destroy, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton
-
Constructor Details
-
R2dbcMessageSourceSpec
protected R2dbcMessageSourceSpec(org.springframework.data.r2dbc.core.R2dbcEntityOperations r2dbcEntityOperations, String query) -
R2dbcMessageSourceSpec
protected R2dbcMessageSourceSpec(org.springframework.data.r2dbc.core.R2dbcEntityOperations r2dbcEntityOperations, Expression queryExpression)
-
-
Method Details
-
payloadType
Set the expected payload type.- Parameters:
payloadType- the class to use.- Returns:
- the spec
-
updateSql
Configure an update query.- Parameters:
updateSql- the update query string.- Returns:
- the spec
-
bindFunction
public R2dbcMessageSourceSpec bindFunction(BiFunction<DatabaseClient.GenericExecuteSpec,?,DatabaseClient.GenericExecuteSpec> bindFunction)Set aBiFunctionwhich is used to bind parameters into the update query.- Parameters:
bindFunction- theBiFunctionto use.- Returns:
- the spec
-
expectSingleResult
The flag to manage which find* method to invoke onR2dbcEntityOperations.- Parameters:
expectSingleResult- true if a single result is expected.- Returns:
- the spec
-