◆ batch_size() [1/2]
const stdx::optional< std::int32_t > & mongocxx::options::change_stream::batch_size |
( |
| ) |
const |
The current batch size setting.
- Returns
- The current batch size.
◆ batch_size() [2/2]
change_stream & mongocxx::options::change_stream::batch_size |
( |
std::int32_t |
batch_size | ) |
|
Sets the number of documents to return per batch.
- Parameters
-
batch_size | The size of the batches to request. |
- Returns
- A reference to the object on which this member function is being called. This facilitates method chaining.
◆ collation() [1/2]
Retrieves the current collation for this operation.
- Returns
- The current collation.
◆ collation() [2/2]
Sets the collation for this operation.
- Parameters
-
collation | The new collation. |
- Returns
- A reference to the object on which this member function is being called. This facilitates method chaining.
◆ full_document() [1/2]
Gets the current fullDocument setting.
- Returns
- The current fullDocument setting.
◆ full_document() [2/2]
Sets the fullDocument stage for the $changeStream.
The allowed values are: ‘default’, ‘updateLookup’. If none set, defaults to ‘default’.
When set to ‘updateLookup’, the change stream will include both a delta describing the changes to the document, as well as a copy of the entire document that was changed from some time after the change occurred. This will be stored in the "fullDocument" field of the notification.
- Parameters
-
full_doc | The fullDocument setting to use on this stream. |
- Returns
- A reference to the object on which this member function is being called. This facilitates method chaining.
◆ max_await_time() [1/2]
const stdx::optional< std::chrono::milliseconds > & mongocxx::options::change_stream::max_await_time |
( |
| ) |
const |
The current max_time setting.
- Returns
- The current max time (in milliseconds).
◆ max_await_time() [2/2]
change_stream & mongocxx::options::change_stream::max_await_time |
( |
std::chrono::milliseconds |
max_time | ) |
|
Sets the maximum amount of time for for the server to wait on new documents to satisfy a change stream query.
- Parameters
-
max_time | The max amount of time (in milliseconds) for the server to wait on new documents. |
- Returns
- A reference to the object on which this member function is being called. This facilitates method chaining.
◆ resume_after() [1/2]
Retrieves the current resumeToken for this change stream.
- Returns
- The current resumeToken.
◆ resume_after() [2/2]
Specifies the logical starting point for the new change stream.
- Parameters
-
resume_after | The resumeToken to use when starting the change stream. |
- Returns
- A reference to the object on which this member function is being called. This facilitates method chaining.
◆ start_at_operation_time()
Specifies the logical starting point for the new change stream.
Changes are returned at or after the specified operation time.
- Parameters
-
timestamp | The starting operation time. |
- Returns
- A reference to the object on which this member function is being called. This facilitates method chaining.
The documentation for this class was generated from the following file: