22 #include <bsoncxx/stdx/optional.hpp>
23 #include <bsoncxx/stdx/string_view.hpp>
24 #include <mongocxx/stdx.hpp>
26 #include <mongocxx/config/prelude.hpp>
29 MONGOCXX_INLINE_NAMESPACE_BEGIN
106 void journal(
bool journal);
123 void nodes(
std::int32_t confirm_from);
139 void acknowledge_level(level confirm_level);
151 void majority(
std::chrono::milliseconds timeout);
162 void tag(stdx::string_view tag);
173 void timeout(
std::chrono::milliseconds timeout);
180 bool journal() const;
191 stdx::optional<
std::int32_t> nodes() const;
202 stdx::optional<level> acknowledge_level() const;
209 stdx::optional<
std::
string> tag() const;
216 bool majority() const;
223 std::chrono::milliseconds timeout() const;
232 class MONGOCXX_PRIVATE impl;
236 std::unique_ptr<impl> _impl;
239 MONGOCXX_INLINE_NAMESPACE_END
242 #include <mongocxx/config/postlude.hpp>
Class representing a MongoDB connection string URI.
Definition: uri.hpp:40
Definition: bulk_write.hpp:22
Definition: error_code.hpp:72
Class representing a client connection to MongoDB.
Definition: client.hpp:49
Class representing a MongoDB database.
Definition: database.hpp:44
level
A class to represent the special case values for write_concern::nodes.
Definition: write_concern.hpp:60
Class representing a batch of write operations that can be sent to the server as a group...
Definition: bulk_write.hpp:41
Class representing the server-side requirement for reporting the success of a write operation...
Definition: write_concern.hpp:54
Class representing server side document groupings within a MongoDB database.
Definition: collection.hpp:74