MongoDB C++ Driver
mongocxx-3.6.2
|
19 #include <bsoncxx/stdx/optional.hpp>
20 #include <mongocxx/read_preference.hpp>
22 #include <mongocxx/config/prelude.hpp>
25 MONGOCXX_INLINE_NAMESPACE_BEGIN
55 const bsoncxx::stdx::optional<std::chrono::milliseconds>&
max_time()
const;
81 bsoncxx::stdx::optional<std::chrono::milliseconds> _max_time;
82 bsoncxx::stdx::optional<class read_preference> _read_preference;
86 MONGOCXX_INLINE_NAMESPACE_END
89 #include <mongocxx/config/postlude.hpp>
Top level namespace for the MongoDB C++ driver.
Definition: bulk_write.hpp:24
Class representing the optional arguments to mongocxx::collection::estimated_document_count.
Definition: estimated_document_count.hpp:32
const bsoncxx::stdx::optional< std::chrono::milliseconds > & max_time() const
The current max_time setting.
Class representing a preference for how the driver routes read operations to members of a replica set...
Definition: read_preference.hpp:62
const bsoncxx::stdx::optional< class read_preference > & read_preference() const
The current read_preference for this operation.
estimated_document_count & read_preference(class read_preference rp)
Sets the read_preference for this operation.
estimated_document_count & max_time(std::chrono::milliseconds max_time)
Sets the maximum amount of time for this operation to run (server-side) in milliseconds.