Controls how the client library resumes uploads and downloads.
Functions
clone() const
Returns
Type
Description
std::unique_ptr< ResumePolicy >
OnStartSuccess()
Notifies the policy about successful connections.
Policies may need to know if a streaming RPC started successfully. For example, they may reset counters or timers when a streaming RPC starts. The resume loop(s) will notify the policy of these events.
Returns
Type
Description
void
OnFinish(Status const &)
Controls what action the resume loop(s) should take when a streaming RPC returns an error.
[[["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 2026-01-29 UTC."],[],[]]