final case class WatchQueryBuilder[F[_], T] extends QueryBuilder[ChangeStreamPublisher, T] with Product with Serializable
- Alphabetic
- By Inheritance
- WatchQueryBuilder
- Serializable
- Product
- Equals
- QueryBuilder
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def applyCommands(): ChangeStreamPublisher[T]
- Attributes
- protected
- Definition Classes
- QueryBuilder
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def batchSize(size: Int): WatchQueryBuilder[F, T]
Sets the number of documents to return per batch.
Sets the number of documents to return per batch.
Overrides the Subscription#request value for setting the batch size, allowing for fine grained control over the underlying cursor.
- size
the batch size
- returns
WatchQueryBuilder
- Since
1.8
- def boundedStream(capacity: Int): Stream[F, ChangeStreamDocument[T]]
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException])
- def collation(collation: Collation): WatchQueryBuilder[F, T]
Sets the collation options
Sets the collation options
- collation
the collation options to use
- returns
WatchQueryBuilder
- val commands: List[WatchCommand[T]]
- Attributes
- protected
- Definition Classes
- WatchQueryBuilder → QueryBuilder
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def fullDocument(fullDocument: FullDocument): WatchQueryBuilder[F, T]
Sets the fullDocument value.
Sets the fullDocument value.
- fullDocument
the fullDocument
- returns
WatchQueryBuilder
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def maxAwaitTime(maxAwaitTime: Duration): WatchQueryBuilder[F, T]
Sets the maximum await execution time on the server for this operation.
Sets the maximum await execution time on the server for this operation.
- maxAwaitTime
the max await time.
- returns
WatchQueryBuilder
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val observable: ChangeStreamPublisher[T]
- Attributes
- protected
- Definition Classes
- WatchQueryBuilder → QueryBuilder
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def resumeAfter(resumeToken: BsonDocument): WatchQueryBuilder[F, T]
Sets the logical starting point for the new change stream.
Sets the logical starting point for the new change stream.
- resumeToken
the resume token
- returns
WatchQueryBuilder
- def startAfter(startAfter: BsonDocument): WatchQueryBuilder[F, T]
Similar to
resumeAfter
, this option takes a resume token and starts a new change stream returning the first notification after the token.Similar to
resumeAfter
, this option takes a resume token and starts a new change stream returning the first notification after the token.This will allow users to watch collections that have been dropped and recreated or newly renamed collections without missing any notifications.
Note: The server will report an error if both
startAfter
andresumeAfter
are specified.- startAfter
the startAfter resumeToken
- returns
WatchQueryBuilder
- def startAtOperationTime(startAtOperationTime: BsonTimestamp): WatchQueryBuilder[F, T]
The change stream will only provide changes that occurred after the specified timestamp.
The change stream will only provide changes that occurred after the specified timestamp.
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
- returns
WatchQueryBuilder
- Since
1.9
- def stream: Stream[F, ChangeStreamDocument[T]]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated