Google Cloud Bigtable C++ Client 2.13.0
A C++ Client Library for Google Cloud Bigtable
|
Implement a simple exponential backoff policy. More...
#include <google/cloud/bigtable/rpc_backoff_policy.h>
Public Member Functions | |
ExponentialBackoffPolicy (internal::RPCPolicyParameters defaults) | |
template<typename Rep1 , typename Period1 , typename Rep2 , typename Period2 > | |
ExponentialBackoffPolicy (std::chrono::duration< Rep1, Period1 > initial_delay, std::chrono::duration< Rep2, Period2 > maximum_delay) | |
std::unique_ptr< RPCBackoffPolicy > | clone () const override |
Return a new copy of this object. More... | |
void | Setup (grpc::ClientContext &context) const override |
Update the ClientContext for the next call. More... | |
std::chrono::milliseconds | OnCompletion (Status const &status) override |
Return the delay after an RPC operation has completed. More... | |
std::chrono::milliseconds | OnCompletion (grpc::Status const &status) override |
std::chrono::milliseconds | OnCompletion () |
Implement a simple exponential backoff policy.
google::cloud::bigtable::ExponentialBackoffPolicy::ExponentialBackoffPolicy | ( | internal::RPCPolicyParameters | defaults | ) |
|
inline |
|
overridevirtual |
Return a new copy of this object.
Typically implemented as
Implements google::cloud::bigtable::RPCBackoffPolicy.
|
inlineinherited |
|
overridevirtual |
Implements google::cloud::bigtable::RPCBackoffPolicy.
|
overridevirtual |
Return the delay after an RPC operation has completed.
status | the status returned by the last RPC operation. |
Implements google::cloud::bigtable::RPCBackoffPolicy.
|
overridevirtual |
Update the ClientContext for the next call.
Implements google::cloud::bigtable::RPCBackoffPolicy.