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"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-09 UTC."],[[["This document provides information on the `RPCBackoffPolicy` class within the Google Cloud Bigtable C++ client library, with the latest release being version 2.37.0-rc."],["The `RPCBackoffPolicy` class defines the interface for managing how the Bigtable client handles retries of failed Remote Procedure Calls (RPCs)."],["This class allows users to control the number of retry attempts, the frequency of these attempts, and the method for signaling errors during RPC operations."],["The `RPCBackoffPolicy` instance serves as a template for creating new objects with the same type and state, which is provided upon the creation of `Table` or `TableAdmin` objects."],["The key functions of the `RPCBackoffPolicy` are `clone()`, which makes a copy of the object, `Setup(grpc::ClientContext &)`, which updates the context, and `OnCompletion()`, which manages the delay after an RPC completes."]]],[]]