Change Stream Flow
interface ChangeStreamFlow<out TResult : Any> : Flow<ChangeStreamDocument<out TResult>>
Content copied to clipboard
Flow for change streams.
Since
3.6
Parameters
Types
Functions
Link copied to clipboard
Sets the number of documents to return per batch.
Link copied to clipboard
Sets the collation options
Link copied to clipboard
Helper to return first result.
Link copied to clipboard
abstract fun fullDocument(fullDocument: FullDocument): ChangeStreamFlow<TResult>
Content copied to clipboard
Sets the fullDocument value.
Link copied to clipboard
abstract fun maxAwaitTime(maxAwaitTime: Long, timeUnit: TimeUnit): ChangeStreamFlow<TResult>
Content copied to clipboard
Sets the maximum await execution time on the server for this operation.
Link copied to clipboard
abstract fun resumeAfter(resumeToken: BsonDocument): ChangeStreamFlow<TResult>
Content copied to clipboard
Sets the logical starting point for the new change stream.
Link copied to clipboard
abstract fun startAfter(startAfter: BsonDocument): ChangeStreamFlow<TResult>
Content copied to clipboard
Similar to resumeAfter, this option takes a resume token and starts a new change stream returning the first notification after the token.
Link copied to clipboard
abstract fun startAtOperationTime(startAtOperationTime: BsonTimestamp): ChangeStreamFlow<TResult>
Content copied to clipboard
The change stream will only provide changes that occurred after the specified timestamp.
Link copied to clipboard