Class ResumePolicy (2.47.0-rc)

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.

Parameter
Name Description
Status const &
Returns
Type Description
Action

Enum

google::cloud::storage::ResumePolicy::Action