Class representing the optional arguments for a transaction.
More...
#include <transaction.hpp>
Class representing the optional arguments for a transaction.
◆ max_commit_time_ms() [1/2]
stdx::optional<std::chrono::milliseconds> mongocxx::options::transaction::max_commit_time_ms |
( |
| ) |
const |
Gets the current transaction commit time, in milliseconds.
- Returns
- An optional containing the timeout. If the max commit time has not been set, a disengaged optional is returned.
◆ max_commit_time_ms() [2/2]
transaction& mongocxx::options::transaction::max_commit_time_ms |
( |
std::chrono::milliseconds |
ms | ) |
|
Sets the transaction's max commit time, in milliseconds.
- Parameters
-
ms | The max commit time in milliseconds. |
- Returns
- A reference to the object on which this function is being called.
◆ read_concern() [1/2]
stdx::optional<class read_concern> mongocxx::options::transaction::read_concern |
( |
| ) |
const |
Gets the current transaction read concern.
- Returns
- An optional containing the read concern. If the read concern has not been set, a disengaged optional is returned.
◆ read_concern() [2/2]
Sets the transaction read concern.
- Parameters
-
- Returns
- A reference to the object on which this member function is being called. This facilitates method chaining.
◆ read_preference() [1/2]
stdx::optional<class read_preference> mongocxx::options::transaction::read_preference |
( |
| ) |
const |
Gets the current transaction read preference.
- Returns
- An optional containing the read preference. If the read preference has not been set, a disengaged optional is returned.
◆ read_preference() [2/2]
Sets the transaction read preference.
- Parameters
-
- Returns
- A reference to the object on which this member function is being called. This facilitates method chaining.
◆ write_concern() [1/2]
stdx::optional<class write_concern> mongocxx::options::transaction::write_concern |
( |
| ) |
const |
Gets the current transaction write concern.
- Returns
- The write concern.
-
An optional containing the write concern. If the write concern has not been set, a disengaged optional is returned.
◆ write_concern() [2/2]
Sets the transaction write concern.
- Parameters
-
- Returns
- A reference to the object on which this member function is being called. This facilitates method chaining.
The documentation for this class was generated from the following files: