Class ResumePolicy (2.23.0)

Controls how the client library resumes uploads and downloads.

Functions

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

google::cloud::storage_experimental::ResumePolicy::Action