GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
MONGOC_CHANGE_STREAM_GET_RESUME_TOKEN(3) libmongoc MONGOC_CHANGE_STREAM_GET_RESUME_TOKEN(3)

const bson_t *
mongoc_change_stream_get_resume_token (mongoc_change_stream_t *stream);


This function returns the cached resume token, which may be passed as either the resumeAfter or startAfter option of a watch function to start a new change stream from the same point.

stream: A mongoc_change_stream_t.

A bson_t that should not be modified or freed.

Returns NULL if no resume token is available. This is possible if the change stream has not been iterated and neither resumeAfter nor startAfter options were specified in the watch function.

The returned bson_t is valid for the lifetime of stream and its data may be updated if mongoc_change_stream_next() is called after this function. The value may be copied to extend its lifetime or preserve the current resume token.

MongoDB, Inc

2009-present, MongoDB, Inc.

July 3, 2025 1.30.4

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.