public class ChangeStreamOptions extends Object
| Constructor and Description |
|---|
ChangeStreamOptions() |
| Modifier and Type | Method and Description |
|---|---|
<T> com.mongodb.reactivestreams.client.ChangeStreamPublisher<T> |
apply(com.mongodb.reactivestreams.client.ChangeStreamPublisher<T> stream) |
ChangeStreamOptions |
collation(com.mongodb.client.model.Collation collation)
Sets the collation options
|
ChangeStreamOptions |
fullDocument(com.mongodb.client.model.changestream.FullDocument fullDocument)
Sets the fullDocument value.
|
ChangeStreamOptions |
maxAwaitTime(long maxAwaitTime,
TimeUnit timeUnit)
Sets the maximum await execution time on the server for this operation.
|
ChangeStreamOptions |
resumeAfter(org.bson.BsonDocument resumeToken)
Sets the logical starting point for the new change stream.
|
ChangeStreamOptions |
startAtOperationTime(org.bson.BsonTimestamp startAtOperationTime)
The change stream will only provide changes that occurred after the specified timestamp.
|
public ChangeStreamOptions fullDocument(com.mongodb.client.model.changestream.FullDocument fullDocument)
fullDocument - the fullDocumentpublic ChangeStreamOptions resumeAfter(org.bson.BsonDocument resumeToken)
resumeToken - the resume tokenpublic ChangeStreamOptions startAtOperationTime(org.bson.BsonTimestamp startAtOperationTime)
Any command run against the server will return an operation time that can be used here.
The default value is an operation time obtained from the server before the change stream was created.
startAtOperationTime - the start at operation time.public ChangeStreamOptions maxAwaitTime(long maxAwaitTime, TimeUnit timeUnit)
maxAwaitTime - the max await time. A zero value will be ignored, and indicates that the driver should respect the
server's
default valuetimeUnit - the time unit, which may not be nullpublic ChangeStreamOptions collation(com.mongodb.client.model.Collation collation)
A null value represents the server default.
collation - the collation options to usepublic <T> com.mongodb.reactivestreams.client.ChangeStreamPublisher<T> apply(com.mongodb.reactivestreams.client.ChangeStreamPublisher<T> stream)
Copyright © 2020 JBoss by Red Hat. All rights reserved.