TResult
- The type of the result.public interface ChangeStreamIterable<TResult> extends MongoIterable<TResult>
Modifier and Type | Method and Description |
---|---|
ChangeStreamIterable<TResult> |
batchSize(int batchSize)
Sets the number of documents to return per batch.
|
ChangeStreamIterable<TResult> |
collation(Collation collation)
Sets the collation options
|
ChangeStreamIterable<TResult> |
fullDocument(FullDocument fullDocument)
Sets the fullDocument value.
|
ChangeStreamIterable<TResult> |
maxAwaitTime(long maxAwaitTime,
TimeUnit timeUnit)
Sets the maximum await execution time on the server for this operation.
|
ChangeStreamIterable<TResult> |
resumeAfter(Bson resumeToken)
Sets the logical starting point for the new change stream.
|
first, forEach, into, iterator, map
forEach, spliterator
ChangeStreamIterable<TResult> fullDocument(FullDocument fullDocument)
fullDocument
- the fullDocumentChangeStreamIterable<TResult> resumeAfter(Bson resumeToken)
resumeToken
- the resume tokenChangeStreamIterable<TResult> batchSize(int batchSize)
batchSize
in interface MongoIterable<TResult>
batchSize
- the batch sizeChangeStreamIterable<TResult> 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 nullChangeStreamIterable<TResult> collation(Collation collation)
A null value represents the server default.
collation
- the collation options to use