Send feedback
Class RPCRetryPolicy (2.28.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.28.0 keyboard_arrow_down
Define the interface for controlling how the Bigtable client retries 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 RPCRetryPolicy 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
return std::unique_ptr<RPCRetryPolicy>(new Foo(*this));
Returns
Type
Description
std::unique_ptr< RPCRetryPolicy >
Setup(grpc::ClientContext &) const
Update the ClientContext for the next call.
Parameter
Name
Description
context
grpc::ClientContext &
Returns
Type
Description
void
OnFailure(Status const &)
Parameter
Name
Description
status
Status const &
Returns
Type
Description
bool
true if the RPC operation should be retried.
OnFailure(grpc::Status const &)
Parameter
Name
Description
status
grpc::Status const &
Returns
Type
Description
bool
virtual IsExhausted() const
Returns
Type
Description
bool
static IsPermanentFailure(Status const &)
Parameter
Name
Description
status
Status const &
Returns
Type
Description
bool
static IsPermanentFailure(grpc::Status const &)
Parameter
Name
Description
status
grpc::Status const &
Returns
Type
Description
bool
Type Aliases
RetryableTraits
Alias Of : bigtable_internal::SafeGrpcRetry
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-10 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
Need to tell us more?
{"lastModified": "Last updated 2024-09-10 UTC."}