public class MongoDbChangeStreamMessageProducerSpec extends MessageProducerSpec<MongoDbChangeStreamMessageProducerSpec,MongoDbChangeStreamMessageProducer>
PARSER, target
logger
DEFAULT_PHASE
OBJECT_TYPE_ATTRIBUTE
Constructor and Description |
---|
MongoDbChangeStreamMessageProducerSpec(MongoDbChangeStreamMessageProducer producer)
Construct a builder based on an initial
MongoDbChangeStreamMessageProducerSpec . |
Modifier and Type | Method and Description |
---|---|
MongoDbChangeStreamMessageProducerSpec |
collection(String collection)
Configure a collection to subscribe for change events.
|
MongoDbChangeStreamMessageProducerSpec |
domainType(Class<?> domainType)
Configure a domain type to convert change event body into.
|
MongoDbChangeStreamMessageProducerSpec |
extractBody(boolean extractBody)
Configure a flag to extract body from a change event or use event as a payload.
|
MongoDbChangeStreamMessageProducerSpec |
options(ChangeStreamOptions options)
Configure a
ChangeStreamOptions . |
autoStartup, errorChannel, errorChannel, errorMessageStrategy, id, outputChannel, outputChannel, phase, sendTimeout, shouldTrack
_this, createInstance, destroyInstance, doGet, get, getId, getObjectType, getPhase, isAutoStartup, isRunning, start, stop, stop
afterPropertiesSet, destroy, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton
public MongoDbChangeStreamMessageProducerSpec(MongoDbChangeStreamMessageProducer producer)
MongoDbChangeStreamMessageProducerSpec
.producer
- the MongoDbChangeStreamMessageProducerSpec
to use.public MongoDbChangeStreamMessageProducerSpec domainType(Class<?> domainType)
domainType
- the type to use.public MongoDbChangeStreamMessageProducerSpec collection(String collection)
collection
- the collection to use.public MongoDbChangeStreamMessageProducerSpec options(ChangeStreamOptions options)
ChangeStreamOptions
.options
- the ChangeStreamOptions
to use.public MongoDbChangeStreamMessageProducerSpec extractBody(boolean extractBody)
extractBody
- to extract body or not.