Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Interface ChangeStreamIterable<TResult>

    • Method Detail

      • resumeAfter

        ChangeStreamIterable<TResult> resumeAfter​(BsonDocument resumeToken)
        Sets the logical starting point for the new change stream.
        Parameters:
        resumeToken - the resume token
        Returns:
        this
      • maxAwaitTime

        ChangeStreamIterable<TResult> maxAwaitTime​(long maxAwaitTime,
                                                   TimeUnit timeUnit)
        Sets the maximum await execution time on the server for this operation.
        Parameters:
        maxAwaitTime - the max await time. A zero value will be ignored, and indicates that the driver should respect the server's default value
        timeUnit - the time unit, which may not be null
        Returns:
        this
      • collation

        ChangeStreamIterable<TResult> collation​(@Nullable
                                                Collation collation)
        Sets the collation options

        A null value represents the server default.

        Parameters:
        collation - the collation options to use
        Returns:
        this
      • withDocumentClass

        <TDocument> MongoIterable<TDocument> withDocumentClass​(Class<TDocument> clazz)
        Returns a MongoIterable containing the results of the change stream based on the document class provided.
        Type Parameters:
        TDocument - the result type
        Parameters:
        clazz - the class to use for the raw result.
        Returns:
        the new Mongo Iterable