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.
Only errors orginating from GRPC will be retried.
Inherits
- Object
Methods
#call
def
call
(
error
)
#delay
def
delay
()
The current delay value.
#initial_delay
def
initial_delay
()
#initialize
def
initialize
(
retry_codes
:
nil
,
initial_delay
:
nil
,
multiplier
:
nil
,
max_delay
:
nil
)
-
>
RetryPolicy
Create new API Call RetryPolicy.
Parameters
- initial_delay(Numeric) (defaults to: nil) — client-side timeout
- multiplier(Numeric) (defaults to: nil) — client-side timeout
- max_delay(Numeric) (defaults to: nil) — client-side timeout
Returns
- ( RetryPolicy ) — a new instance of RetryPolicy
#max_delay
def
max_delay
()
#multiplier
def
multiplier
()
#retry_codes
def
retry_codes
()