Class R2dbcMessageSourceSpec
java.lang.Object
org.springframework.integration.dsl.IntegrationComponentSpec<R2dbcMessageSourceSpec, R2dbcMessageSource>
org.springframework.integration.dsl.MessageSourceSpec<R2dbcMessageSourceSpec, R2dbcMessageSource>
org.springframework.integration.r2dbc.dsl.R2dbcMessageSourceSpec
- All Implemented Interfaces:
- 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 SummaryFields inherited from class org.springframework.integration.dsl.IntegrationComponentSpeclogger, PARSER, targetFields inherited from interface org.springframework.beans.factory.FactoryBeanOBJECT_TYPE_ATTRIBUTEFields inherited from interface org.springframework.context.SmartLifecycleDEFAULT_PHASE
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedR2dbcMessageSourceSpec(org.springframework.data.r2dbc.core.R2dbcEntityOperations r2dbcEntityOperations, String query) protectedR2dbcMessageSourceSpec(org.springframework.data.r2dbc.core.R2dbcEntityOperations r2dbcEntityOperations, Expression queryExpression) 
- 
Method SummaryModifier and TypeMethodDescriptionbindFunction(BiFunction<DatabaseClient.GenericExecuteSpec, ?, DatabaseClient.GenericExecuteSpec> bindFunction) Set aBiFunctionwhich is used to bind parameters into the update query.expectSingleResult(boolean expectSingleResult) The flag to manage which find* method to invoke onR2dbcEntityOperations.payloadType(Class<?> payloadType) Set the expected payload type.Configure an update query.Methods inherited from class org.springframework.integration.dsl.MessageSourceSpecmessageHeadersMethods inherited from class org.springframework.integration.dsl.IntegrationComponentSpec_this, afterPropertiesSet, destroy, doGet, getId, getObject, getObjectType, getPhase, id, isAutoStartup, isRunning, start, stop, stopMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.beans.factory.FactoryBeanisSingleton
- 
Constructor Details- 
R2dbcMessageSourceSpecprotected R2dbcMessageSourceSpec(org.springframework.data.r2dbc.core.R2dbcEntityOperations r2dbcEntityOperations, String query) 
- 
R2dbcMessageSourceSpecprotected R2dbcMessageSourceSpec(org.springframework.data.r2dbc.core.R2dbcEntityOperations r2dbcEntityOperations, Expression queryExpression) 
 
- 
- 
Method Details- 
payloadTypeSet the expected payload type.- Parameters:
- payloadType- the class to use.
- Returns:
- the spec
 
- 
updateSqlConfigure an update query.- Parameters:
- updateSql- the update query string.
- Returns:
- the spec
 
- 
bindFunctionpublic R2dbcMessageSourceSpec bindFunction(BiFunction<DatabaseClient.GenericExecuteSpec, ?, DatabaseClient.GenericExecuteSpec> bindFunction) Set aBiFunctionwhich is used to bind parameters into the update query.- Parameters:
- bindFunction- the- BiFunctionto use.
- Returns:
- the spec
 
- 
expectSingleResultThe flag to manage which find* method to invoke onR2dbcEntityOperations.- Parameters:
- expectSingleResult- true if a single result is expected.
- Returns:
- the spec
 
 
-