MongoDB C++ Driver 4.1.0
|
#include <mongocxx/v_noabi/mongocxx/options/transaction.hpp>
Used by MongoDB transaction operations.
Public Member Functions | |
transaction (transaction &&) noexcept | |
Move constructs transaction options. | |
transaction (transaction const &) | |
Copy constructs transaction options. | |
~transaction () noexcept | |
Destroys the transaction options. | |
bsoncxx::v_noabi::stdx::optional< std::chrono::milliseconds > | max_commit_time_ms () const |
Gets the current transaction commit time, in milliseconds. | |
transaction & | max_commit_time_ms (std::chrono::milliseconds ms) |
Sets the transaction's max commit time, in milliseconds. | |
transaction & | operator= (transaction &&) noexcept |
Move assigns transaction options. | |
transaction & | operator= (transaction const &) |
Copy assigns transaction options. | |
bsoncxx::v_noabi::stdx::optional< mongocxx::v_noabi::read_concern > | read_concern () const |
Gets the current transaction read concern. | |
transaction & | read_concern (mongocxx::v_noabi::read_concern const &rc) |
Sets the transaction read concern. | |
bsoncxx::v_noabi::stdx::optional< mongocxx::v_noabi::read_preference > | read_preference () const |
Gets the current transaction read preference. | |
transaction & | read_preference (mongocxx::v_noabi::read_preference const &rp) |
Sets the transaction read preference. | |
bsoncxx::v_noabi::stdx::optional< mongocxx::v_noabi::write_concern > | write_concern () const |
Gets the current transaction write concern. | |
transaction & | write_concern (mongocxx::v_noabi::write_concern const &wc) |
Sets the transaction write concern. | |
mongocxx::v_noabi::options::transaction::transaction | ( | transaction const & | ) |
Copy constructs transaction options.
|
noexcept |
Move constructs transaction options.
|
noexcept |
Destroys the transaction options.
bsoncxx::v_noabi::stdx::optional< std::chrono::milliseconds > mongocxx::v_noabi::options::transaction::max_commit_time_ms | ( | ) | const |
Gets the current transaction commit time, in milliseconds.
transaction & mongocxx::v_noabi::options::transaction::max_commit_time_ms | ( | std::chrono::milliseconds | ms | ) |
Sets the transaction's max commit time, in milliseconds.
ms | The max commit time in milliseconds. |
|
noexcept |
Move assigns transaction options.
transaction & mongocxx::v_noabi::options::transaction::operator= | ( | transaction const & | ) |
Copy assigns transaction options.
bsoncxx::v_noabi::stdx::optional< mongocxx::v_noabi::read_concern > mongocxx::v_noabi::options::transaction::read_concern | ( | ) | const |
Gets the current transaction read concern.
transaction & mongocxx::v_noabi::options::transaction::read_concern | ( | mongocxx::v_noabi::read_concern const & | rc | ) |
Sets the transaction read concern.
rc | The read concern. |
bsoncxx::v_noabi::stdx::optional< mongocxx::v_noabi::read_preference > mongocxx::v_noabi::options::transaction::read_preference | ( | ) | const |
Gets the current transaction read preference.
transaction & mongocxx::v_noabi::options::transaction::read_preference | ( | mongocxx::v_noabi::read_preference const & | rp | ) |
Sets the transaction read preference.
rp | The read preference. |
bsoncxx::v_noabi::stdx::optional< mongocxx::v_noabi::write_concern > mongocxx::v_noabi::options::transaction::write_concern | ( | ) | const |
Gets the current transaction write concern.
transaction & mongocxx::v_noabi::options::transaction::write_concern | ( | mongocxx::v_noabi::write_concern const & | wc | ) |
Sets the transaction write concern.
wc | The write concern. |