Class MongoDbChangeStreamMessageProducerSpec
java.lang.Object
org.springframework.integration.dsl.IntegrationComponentSpec<S,P>
 
org.springframework.integration.dsl.MessageProducerSpec<MongoDbChangeStreamMessageProducerSpec,MongoDbChangeStreamMessageProducer>
 
org.springframework.integration.mongodb.dsl.MongoDbChangeStreamMessageProducerSpec
- All Implemented Interfaces:
- org.springframework.beans.factory.DisposableBean,- org.springframework.beans.factory.FactoryBean<MongoDbChangeStreamMessageProducer>,- org.springframework.beans.factory.InitializingBean,- org.springframework.context.Lifecycle,- org.springframework.context.Phased,- org.springframework.context.SmartLifecycle
public class MongoDbChangeStreamMessageProducerSpec
extends org.springframework.integration.dsl.MessageProducerSpec<MongoDbChangeStreamMessageProducerSpec,MongoDbChangeStreamMessageProducer> 
A 
MessageProducerSpec for tne MongoDbChangeStreamMessageProducer.- Since:
- 5.3
- 
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 SummaryConstructorsConstructorDescriptionConstruct a builder based on an initialMongoDbChangeStreamMessageProducerSpec.
- 
Method SummaryModifier and TypeMethodDescriptioncollection(String collection) Configure a collection to subscribe for change events.domainType(Class<?> domainType) Configure a domain type to convert change event body into.extractBody(boolean extractBody) Configure a flag to extract body from a change event or use event as a payload.options(org.springframework.data.mongodb.core.ChangeStreamOptions options) Configure aChangeStreamOptions.Methods inherited from class org.springframework.integration.dsl.MessageProducerSpecautoStartup, errorChannel, errorChannel, errorMessageStrategy, id, outputChannel, outputChannel, phase, sendTimeout, shouldTrackMethods inherited from class org.springframework.integration.dsl.IntegrationComponentSpec_this, afterPropertiesSet, destroy, doGet, get, getId, getObject, getObjectType, getPhase, 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- 
MongoDbChangeStreamMessageProducerSpecConstruct a builder based on an initialMongoDbChangeStreamMessageProducerSpec.- Parameters:
- producer- the- MongoDbChangeStreamMessageProducerSpecto use.
 
 
- 
- 
Method Details- 
domainTypeConfigure a domain type to convert change event body into.- Parameters:
- domainType- the type to use.
- Returns:
- the spec.
 
- 
collectionConfigure a collection to subscribe for change events.- Parameters:
- collection- the collection to use.
- Returns:
- the spec.
 
- 
optionspublic MongoDbChangeStreamMessageProducerSpec options(org.springframework.data.mongodb.core.ChangeStreamOptions options) Configure aChangeStreamOptions.- Parameters:
- options- the- ChangeStreamOptionsto use.
- Returns:
- the spec.
 
- 
extractBodyConfigure a flag to extract body from a change event or use event as a payload.- Parameters:
- extractBody- to extract body or not.
- Returns:
- the spec.
 
 
-