The base class for the Spanner library transaction rerun policies.
The Client::Commit() functions (there are several overloads) consume a callable to create mutations or a list of mutations. Commit() creates a transaction and applies the mutations. If the transaction fails, an instance of this class is used to control whether the transaction will be attempted again.
Functions
clone() const
Creates a new instance of the policy, reset to the initial state.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-14 UTC."],[[["This webpage provides documentation for the `TransactionRerunPolicy` class within the Google Cloud Spanner C++ client library, specifically for version 2.28.0, with links to other versions."],["The `TransactionRerunPolicy` class determines if a transaction should be retried after a failure, using methods to evaluate failure status and determine if a retry is appropriate."],["The `Client::Commit()` function uses this policy to handle transaction retries when applying mutations to the database."],["Key functions of this class include `clone()`, `OnFailure()`, `IsExhausted()`, and `IsPermanentFailure()`, which are used to manage the retry behavior."],["There are numerous previous versions of the documentation of this class, accessible through hyperlinks, ranging from version `2.11.0` to `2.36.0` and the latest release candidate version `2.37.0-rc`."]]],[]]