java.lang.Object
org.springframework.data.mongodb.core.ChangeStreamOptions
Options applicable to MongoDB Change Streams. Intended
to be used along with
ChangeStreamRequest in a sync world as
well ReactiveMongoOperations if you prefer it that way.- Since:
- 2.1
- Author:
- Christoph Strobl, Mark Paluch, Myroslav Kosinskyi
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Obtain a shiny newChangeStreamOptions.ChangeStreamOptionsBuilderand start defining options in this fancy fluent way.static ChangeStreamOptionsempty()booleanOptional<com.mongodb.client.model.changestream.FullDocumentBeforeChange>Optional<com.mongodb.client.model.changestream.FullDocument>Optional<org.bson.BsonTimestamp>Optional<org.bson.BsonValue>inthashCode()booleanboolean
-
Constructor Details
-
ChangeStreamOptions
protected ChangeStreamOptions()
-
-
Method Details
-
getFilter
- Returns:
Optional.empty()if not set.
-
getResumeToken
- Returns:
Optional.empty()if not set.
-
getFullDocumentLookup
- Returns:
Optional.empty()if not set.
-
getFullDocumentBeforeChangeLookup
public Optional<com.mongodb.client.model.changestream.FullDocumentBeforeChange> getFullDocumentBeforeChangeLookup()- Returns:
Optional.empty()if not set.- Since:
- 4.0
-
getCollation
- Returns:
Optional.empty()if not set.
-
getResumeTimestamp
- Returns:
Optional.empty()if not set.
-
getResumeBsonTimestamp
- Returns:
Optional.empty()if not set.- Since:
- 2.2
-
isStartAfter
public boolean isStartAfter()- Returns:
- true if the change stream should be started after the
token. - Since:
- 2.2
-
isResumeAfter
public boolean isResumeAfter()- Returns:
- true if the change stream should be resumed after the
token. - Since:
- 2.2
-
empty
- Returns:
- empty
ChangeStreamOptions.
-
builder
Obtain a shiny newChangeStreamOptions.ChangeStreamOptionsBuilderand start defining options in this fancy fluent way. Just don't forget to callbuild()when done.- Returns:
- new instance of
ChangeStreamOptions.ChangeStreamOptionsBuilder.
-
equals
-
hashCode
public int hashCode()
-