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-21 UTC."],[[["This webpage provides documentation for the `TransactionRerunPolicy` class within the Google Cloud Spanner C++ client library, outlining its role in managing transaction retries."],["The documentation covers a range of versions for the library, from 2.11.0 up to the latest release candidate 2.37.0-rc, each with its own specific reference page for this policy class."],["The `TransactionRerunPolicy` class dictates if a failed transaction created by the `Client::Commit()` function should be attempted again, with functions to check if a failure is permanent or if retries are exhausted."],["The policy includes functions like `clone()`, `OnFailure(Status const &)`, `IsExhausted()`, and `IsPermanentFailure(Status const &)` for managing the state and behavior of transaction retries."]]],[]]