Uses of Class
org.springframework.data.mongodb.core.messaging.ChangeStreamRequest.ChangeStreamRequestBuilder
Package
Description
MongoDB specific messaging support for listening to eg.
-
Uses of ChangeStreamRequest.ChangeStreamRequestBuilder in org.springframework.data.mongodb.core.messaging
Modifier and TypeMethodDescriptionChangeStreamRequest.builder()
Obtain a shiny newChangeStreamRequest.ChangeStreamRequestBuilder
and start defining yourChangeStreamRequest
in this fancy fluent way.static <T> ChangeStreamRequest.ChangeStreamRequestBuilder<T>
ChangeStreamRequest.builder
(MessageListener<com.mongodb.client.model.changestream.ChangeStreamDocument<org.bson.Document>, ? super T> listener) Obtain a shiny newChangeStreamRequest.ChangeStreamRequestBuilder
and start defining yourChangeStreamRequest
in this fancy fluent way.Set the collation to use.ChangeStreamRequest.ChangeStreamRequestBuilder.collection
(String collectionName) Set the name of theMongoCollection
to listen to.Set the name of theMongoDatabase
to listen to.ChangeStreamRequest.ChangeStreamRequestBuilder.filter
(org.bson.Document... pipeline) Set the plain filter chain to apply.ChangeStreamRequest.ChangeStreamRequestBuilder.filter
(Aggregation aggregation) Set the filter to apply.ChangeStreamRequest.ChangeStreamRequestBuilder.fullDocumentBeforeChangeLookup
(com.mongodb.client.model.changestream.FullDocumentBeforeChange lookup) Set theFullDocumentBeforeChange
lookup to the given value.ChangeStreamRequest.ChangeStreamRequestBuilder.fullDocumentLookup
(com.mongodb.client.model.changestream.FullDocument lookup) Set theFullDocument
lookup toFullDocument.UPDATE_LOOKUP
.ChangeStreamRequest.ChangeStreamRequestBuilder.maxAwaitTime
(Duration timeout) Set the cursors maximum wait time on the server (for a new Document to be emitted).ChangeStreamRequest.ChangeStreamRequestBuilder.publishTo
(MessageListener<com.mongodb.client.model.changestream.ChangeStreamDocument<org.bson.Document>, ? super T> messageListener) Set theMessageListener
eventmessages
will be published to.ChangeStreamRequest.ChangeStreamRequestBuilder.resumeAfter
(org.bson.BsonValue resumeToken) Set the resume token after which to continue emitting notifications.Set the cluster time at which to resume listening.ChangeStreamRequest.ChangeStreamRequestBuilder.resumeToken
(org.bson.BsonValue resumeToken) Set the resume token (typically aBsonDocument
containing abinary token
) after which to start with listening.ChangeStreamRequest.ChangeStreamRequestBuilder.startAfter
(org.bson.BsonValue resumeToken) Set the resume token after which to start emitting notifications.