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.
Inherits
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
- (RetryPolicy) — a new instance of RetryPolicy
Constants
DEFAULT_INITIAL_DELAY
value: 10
DEFAULT_MAX_DELAY
value: 300
DEFAULT_MULTIPLIER
value: 1.3
DEFAULT_TIMEOUT
value: 3600