Class MongoDbChangeStreamMessageProducerSpec
java.lang.Object
org.springframework.beans.factory.config.AbstractFactoryBean<T>
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.Aware,org.springframework.beans.factory.BeanClassLoaderAware,org.springframework.beans.factory.BeanFactoryAware,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 Summary
 - 
Constructor Summary
Constructors Constructor Description MongoDbChangeStreamMessageProducerSpec(MongoDbChangeStreamMessageProducer producer)Construct a builder based on an initialMongoDbChangeStreamMessageProducerSpec. - 
Method Summary
Modifier and Type Method Description MongoDbChangeStreamMessageProducerSpeccollection(java.lang.String collection)Configure a collection to subscribe for change events.MongoDbChangeStreamMessageProducerSpecdomainType(java.lang.Class<?> domainType)Configure a domain type to convert change event body into.MongoDbChangeStreamMessageProducerSpecextractBody(boolean extractBody)Configure a flag to extract body from a change event or use event as a payload.MongoDbChangeStreamMessageProducerSpecoptions(org.springframework.data.mongodb.core.ChangeStreamOptions options)Configure aChangeStreamOptions.Methods inherited from class org.springframework.integration.dsl.MessageProducerSpec
autoStartup, errorChannel, errorChannel, errorMessageStrategy, id, outputChannel, outputChannel, phase, sendTimeout, shouldTrackMethods inherited from class org.springframework.integration.dsl.IntegrationComponentSpec
_this, createInstance, destroyInstance, doGet, get, getId, getObjectType, getPhase, isAutoStartup, isRunning, start, stop, stop 
- 
Constructor Details
- 
MongoDbChangeStreamMessageProducerSpec
Construct a builder based on an initialMongoDbChangeStreamMessageProducerSpec.- Parameters:
 producer- theMongoDbChangeStreamMessageProducerSpecto use.
 
 - 
 - 
Method Details
- 
domainType
Configure a domain type to convert change event body into.- Parameters:
 domainType- the type to use.- Returns:
 - the spec.
 
 - 
collection
Configure a collection to subscribe for change events.- Parameters:
 collection- the collection to use.- Returns:
 - the spec.
 
 - 
options
public MongoDbChangeStreamMessageProducerSpec options(org.springframework.data.mongodb.core.ChangeStreamOptions options)Configure aChangeStreamOptions.- Parameters:
 options- theChangeStreamOptionsto use.- Returns:
 - the spec.
 
 - 
extractBody
Configure 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.
 
 
 -