#include <mongocxx/v1/transaction_options.hpp>
Options related to a distributed transaction.
Supported fields include:
Public Member Functions | |
| transaction_options () | |
| Default initialization. | |
| transaction_options (transaction_options &&other) noexcept | |
| Move constructor. | |
| transaction_options (transaction_options const &other) | |
| Copy construction. | |
| ~transaction_options () | |
| Destroy this object. | |
| bsoncxx::v1::stdx::optional< std::chrono::milliseconds > | max_commit_time_ms () const |
| Return the current "maxCommitTimeMS" field. | |
| transaction_options & | max_commit_time_ms (std::chrono::milliseconds v) |
| Set the "maxCommitTimeMS" field. | |
| transaction_options & | operator= (transaction_options &&other) noexcept |
| Move assignment. | |
| transaction_options & | operator= (transaction_options const &other) |
| Copy assignment. | |
| bsoncxx::v1::stdx::optional< v1::read_concern > | read_concern () const |
| Return the current "readConcern" field. | |
| transaction_options & | read_concern (v1::read_concern const &v) |
| Set the "readConcern" field. | |
| bsoncxx::v1::stdx::optional< v1::read_preference > | read_preference () const |
| Return the current "readPreference" field. | |
| transaction_options & | read_preference (v1::read_preference const &v) |
| Set the "readPreference" field. | |
| bsoncxx::v1::stdx::optional< v1::write_concern > | write_concern () const |
| Return the current "writeConcern" field. | |
| transaction_options & | write_concern (v1::write_concern const &v) |
| Set the "writeConcern" field. | |
| mongocxx::v1::transaction_options::~transaction_options | ( | ) |
Destroy this object.
|
noexcept |
Move constructor.
| mongocxx::v1::transaction_options::transaction_options | ( | transaction_options const & | other | ) |
Copy construction.
| mongocxx::v1::transaction_options::transaction_options | ( | ) |
Default initialization.
| bsoncxx::v1::stdx::optional< std::chrono::milliseconds > mongocxx::v1::transaction_options::max_commit_time_ms | ( | ) | const |
Return the current "maxCommitTimeMS" field.
| transaction_options & mongocxx::v1::transaction_options::max_commit_time_ms | ( | std::chrono::milliseconds | v | ) |
Set the "maxCommitTimeMS" field.
|
noexcept |
Move assignment.
| transaction_options & mongocxx::v1::transaction_options::operator= | ( | transaction_options const & | other | ) |
Copy assignment.
| bsoncxx::v1::stdx::optional< v1::read_concern > mongocxx::v1::transaction_options::read_concern | ( | ) | const |
Return the current "readConcern" field.
| transaction_options & mongocxx::v1::transaction_options::read_concern | ( | v1::read_concern const & | v | ) |
Set the "readConcern" field.
| bsoncxx::v1::stdx::optional< v1::read_preference > mongocxx::v1::transaction_options::read_preference | ( | ) | const |
Return the current "readPreference" field.
| transaction_options & mongocxx::v1::transaction_options::read_preference | ( | v1::read_preference const & | v | ) |
Set the "readPreference" field.
| bsoncxx::v1::stdx::optional< v1::write_concern > mongocxx::v1::transaction_options::write_concern | ( | ) | const |
Return the current "writeConcern" field.
| transaction_options & mongocxx::v1::transaction_options::write_concern | ( | v1::write_concern const & | v | ) |
Set the "writeConcern" field.