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);
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;
232 std::unique_ptr<impl> _impl;
235 MONGOCXX_INLINE_NAMESPACE_END
238 #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:67
Class representing a client connection to MongoDB.
Definition: client.hpp:49
Class representing a MongoDB database.
Definition: database.hpp:43
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