Define the interface for controlling how the Bigtable client backsoff from failed RPC operations.
The C++ client for Bigtable needs to hide partial and temporary failures from the application. However, we need to give the users enough flexibility to control how many attempts are made to reissue operations, how often these attempts are executed, and how to signal that an error has occurred.
The application provides an instance of this class when the Table (or TableAdmin) object is created. This instance serves as a prototype to create new RPCBackoffPolicy objects of the same (dynamic) type and with the same initial state.
Functions
clone() const
Return a new copy of this object.
Typically implemented as ```cpp
return std::unique_ptr
Returns
Type
Description
std::unique_ptr< RPCBackoffPolicy >
Setup(grpc::ClientContext &) const
Update the ClientContext for the next call.
Parameter
Name
Description
context
grpc::ClientContext &
Returns
Type
Description
void
OnCompletion(Status const &)
Return the delay after an RPC operation has completed.
[[["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 details the `RPCBackoffPolicy` class within the Google Cloud Bigtable C++ client library, which manages how the client retries failed RPC operations."],["The content provides a comprehensive list of versions for the `RPCBackoffPolicy` class, ranging from version 2.11.0 to the latest release candidate 2.37.0-rc, along with the specific URL for each version."],["The `RPCBackoffPolicy` class allows users to configure the number of retries, the timing between retries, and how errors are reported during Bigtable operations."],["Key functions within the `RPCBackoffPolicy` class include `clone()` for creating copies, `Setup()` for preparing the `ClientContext`, and `OnCompletion()` for determining the delay before a retry."],["The `OnCompletion` function will decide on a millisecond delay after an RPC call, and can return a different response depending on the call parameters, either receiving a Status const or a grpc::Status const."]]],[]]