1.5.0 (latest) 1.4.1 1.3.0 1.2.0 1.1.0 1.0.1 0.26.0 0.25.0 0.24.0 Reference documentation and code samples for the gapic-common class Gapic::CallOptions::RetryPolicy.

The policy for retrying failed RPC calls using an incremental backoff. A new object instance
should be used for every RpcCall invocation.


<br />

Only errors originating from GRPC will be retried.

## Inherits

- [Gapic::Common::RetryPolicy](https://docs.cloud.google.com/ruby/docs/reference/gapic-common/latest/Gapic-Common-RetryPolicy)

## Methods

### #initialize

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

Create new API Call RetryPolicy.
**Parameters**

- **retry_codes** (Array\<String\|Numeric\>) *(defaults to: nil)* --- List of retry codes.
- **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.
- **jitter** (Numeric) *(defaults to: nil)* --- Random jitter added to the delay in seconds.
**Returns**

- ([RetryPolicy](https://docs.cloud.google.com/ruby/docs/reference/gapic-common/latest/Gapic-CallOptions-RetryPolicy)) --- a new instance of RetryPolicy