Class ResumePolicy (3.8.0-rc)
Stay organized with collections
Save and categorize content based on your preferences.
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.