gapic-common - Class Gapic::Operation::RetryPolicy (v0.25.0)

Reference documentation and code samples for the gapic-common class Gapic::Operation::RetryPolicy.

The policy for retrying operation reloads using an incremental backoff.

A new object instance should be used for every Operation invocation.

Methods

#initialize

def initialize(initial_delay: nil, multiplier: nil, max_delay: nil, timeout: nil) -> RetryPolicy

Create new Operation RetryPolicy.

Parameters
  • initial_delay (Numeric) (defaults to: nil) — Initial delay in seconds.
  • multiplier (Numeric) (defaults to: nil) — The delay scaling factor for each subsequent retry attempt.
  • max_delay (Numeric) (defaults to: nil) — Maximum delay in seconds.
  • timeout (Numeric) (defaults to: nil) — Timeout threshold value in seconds.
Returns

Constants

DEFAULT_INITIAL_DELAY

value: 10

DEFAULT_MAX_DELAY

value: 300

DEFAULT_MULTIPLIER

value: 1.3

DEFAULT_TIMEOUT

value: 3600