Couchbase C++ SDK 1.0.4 (rev. 5355b0f)
|
Configuration parameters for transactions. More...
#include <couchbase/transactions/transactions_config.hxx>
Public Member Functions | |
transactions_config () | |
~transactions_config () | |
transactions_config (const transactions_config &c) | |
transactions_config (transactions_config &&c) noexcept | |
auto | operator= (const transactions_config &c) -> transactions_config & |
auto | durability_level () const -> couchbase::durability_level |
Get the default durability level for all transaction operations. | |
auto | durability_level (enum couchbase::durability_level level) -> transactions_config & |
Set the default durability level for all transaction operations. | |
auto | timeout () const -> std::chrono::nanoseconds |
Get the timeout for transactions. | |
template<typename T > | |
auto | timeout (T duration) -> transactions_config & |
Set the timeout for transactions. | |
auto | metadata_collection (const couchbase::transactions::transaction_keyspace &keyspace) -> transactions_config & |
Set the transaction's metadata collection. | |
auto | metadata_collection () const -> std::optional< couchbase::transactions::transaction_keyspace > |
auto | query_config () const -> const transactions_query_config & |
Get the query config values. | |
auto | query_config () -> transactions_query_config & |
Get the query config values. | |
auto | query_config (const transactions_query_config &config) -> transactions_config & |
Set the query configuration for transactions. | |
auto | cleanup_config () const -> const transactions_cleanup_config & |
Get the cleanup configuration for transactions. | |
auto | cleanup_config () -> transactions_cleanup_config & |
Get the cleanup configuration for transactions. | |
auto | cleanup_config (const transactions_cleanup_config &cleanup_config) -> transactions_config & |
Set the cleanup configuration. | |
auto | build () const -> built |
Configuration parameters for transactions.
~transactions_config | ( | ) |
transactions_config | ( | const transactions_config & | c | ) |
|
noexcept |
|
nodiscard |
|
inlinenodiscard |
Get the cleanup configuration for transactions.
|
inlinenodiscard |
Get the cleanup configuration for transactions.
|
inline |
Set the cleanup configuration.
cleanup_config | The cleanup configuration to use. |
|
inlinenodiscard |
Get the default durability level for all transaction operations.
|
inline |
Set the default durability level for all transaction operations.
level | The default durability level desired for write operations. |
|
inlinenodiscard |
|
inline |
Set the transaction's metadata collection.
keyspace | The collection to use for the transaction metadata. |
auto operator= | ( | const transactions_config & | c | ) | -> transactions_config & |
|
inlinenodiscard |
Get the query config values.
|
inlinenodiscard |
Get the query config values.
|
inline |
Set the query configuration for transactions.
config | The transactions query configuration to use. |
|
inlinenodiscard |
Get the timeout for transactions.
Transactions can conflict (or other operations on those documents), and may retry. This is the maximum time a transaction can take, including any retries. The transaction will throw an errc::transaction::expired and rollback when this occurs.
|
inline |
Set the timeout for transactions.
duration | desired expiration for transactions. |