MongoDB C++ Driver mongocxx-3.11.0
|
#include <mongocxx/v_noabi/mongocxx/options/transaction.hpp>
Class representing the optional arguments for a transaction.
Public Member Functions | |
transaction (const transaction &) | |
Copy constructs transaction options. | |
transaction (transaction &&) noexcept | |
Move constructs transaction options. | |
~transaction () noexcept | |
Destroys the transaction options. | |
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= (const transaction &) |
Copy assigns transaction options. | |
transaction & | operator= (transaction &&) noexcept |
Move assigns transaction options. | |
stdx::optional< mongocxx::v_noabi::read_concern > | read_concern () const |
Gets the current transaction read concern. | |
transaction & | read_concern (const mongocxx::v_noabi::read_concern &rc) |
Sets the transaction read concern. | |
stdx::optional< mongocxx::v_noabi::read_preference > | read_preference () const |
Gets the current transaction read preference. | |
transaction & | read_preference (const mongocxx::v_noabi::read_preference &rp) |
Sets the transaction read preference. | |
stdx::optional< mongocxx::v_noabi::write_concern > | write_concern () const |
Gets the current transaction write concern. | |
transaction & | write_concern (const mongocxx::v_noabi::write_concern &wc) |
Sets the transaction write concern. | |
mongocxx::v_noabi::options::transaction::transaction | ( | const transaction & | ) |
Copy constructs transaction options.
|
noexcept |
Move constructs transaction options.
|
noexcept |
Destroys the transaction options.
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. |
transaction & mongocxx::v_noabi::options::transaction::operator= | ( | const transaction & | ) |
Copy assigns transaction options.
|
noexcept |
Move assigns transaction options.
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 | ( | const mongocxx::v_noabi::read_concern & | rc | ) |
Sets the transaction read concern.
rc | The read concern. |
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 | ( | const mongocxx::v_noabi::read_preference & | rp | ) |
Sets the transaction read preference.
rp | The read preference. |
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 | ( | const mongocxx::v_noabi::write_concern & | wc | ) |
Sets the transaction write concern.
wc | The write concern. |