22#include <bsoncxx/stdx/optional.hpp>
23#include <bsoncxx/stdx/string_view.hpp>
24#include <mongocxx/stdx.hpp>
26#include <mongocxx/config/prelude.hpp>
29MONGOCXX_INLINE_NAMESPACE_BEGIN
106 void journal(
bool journal);
123 void nodes(std::int32_t confirm_from);
137 void acknowledge_level(
level confirm_level);
147 void majority(std::chrono::milliseconds timeout);
158 void tag(stdx::string_view tag);
169 void timeout(std::chrono::milliseconds timeout);
176 bool journal() const;
187 stdx::optional<std::int32_t> nodes() const;
198 stdx::optional<
level> acknowledge_level() const;
205 stdx::optional<std::
string> tag() const;
212 bool majority() const;
219 std::chrono::milliseconds timeout() const;
228 class MONGOCXX_PRIVATE impl;
230 MONGOCXX_PRIVATE
write_concern(std::unique_ptr<impl>&& implementation);
232 std::unique_ptr<impl> _impl;
235MONGOCXX_INLINE_NAMESPACE_END
238#include <mongocxx/config/postlude.hpp>
Class representing a batch of write operations that can be sent to the server as a group.
Definition bulk_write.hpp:41
Class representing a client connection to MongoDB.
Definition client.hpp:49
Class representing server side document groupings within a MongoDB database.
Definition collection.hpp:74
Class representing a MongoDB database.
Definition database.hpp:43
Class representing a MongoDB connection string URI.
Definition uri.hpp:40
Class representing the server-side requirement for reporting the success of a write operation.
Definition write_concern.hpp:54
level
A class to represent the special case values for write_concern::nodes.
Definition write_concern.hpp:60
write_concern()
Constructs a new write_concern.
write_concern(const write_concern &)
Copy constructs a write_concern.
write_concern & operator=(const write_concern &)
Copy assigns a write_concern.
write_concern(write_concern &&) noexcept
Move constructs a write_concern.