Google Cloud Bigtable C++ Client 2.13.0
A C++ Client Library for Google Cloud Bigtable
|
Define the interface for controlling how the Bigtable client backsoff from failed RPC operations. More...
#include <google/cloud/bigtable/rpc_backoff_policy.h>
Public Member Functions | |
virtual | ~RPCBackoffPolicy ()=default |
virtual std::unique_ptr< RPCBackoffPolicy > | clone () const =0 |
Return a new copy of this object. More... | |
virtual void | Setup (grpc::ClientContext &context) const =0 |
Update the ClientContext for the next call. More... | |
virtual std::chrono::milliseconds | OnCompletion (Status const &status)=0 |
Return the delay after an RPC operation has completed. More... | |
virtual std::chrono::milliseconds | OnCompletion (grpc::Status const &s)=0 |
std::chrono::milliseconds | OnCompletion () |
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.
|
virtualdefault |
|
pure virtual |
Return a new copy of this object.
Typically implemented as
Implemented in google::cloud::bigtable::ExponentialBackoffPolicy.
|
inline |
|
pure virtual |
Implemented in google::cloud::bigtable::ExponentialBackoffPolicy.
|
pure virtual |
Return the delay after an RPC operation has completed.
status | the status returned by the last RPC operation. |
Implemented in google::cloud::bigtable::ExponentialBackoffPolicy.
|
pure virtual |
Update the ClientContext for the next call.
Implemented in google::cloud::bigtable::ExponentialBackoffPolicy.