RetryOptions Class

Retry Options.

Defines retry policies that can be passed as parameters to various operations.

Inheritance
builtins.object
RetryOptions

Constructor

RetryOptions(first_retry_interval_in_milliseconds: int, max_number_of_attempts: int)

Parameters

Name Description
first_retry_interval_in_milliseconds
Required
max_number_of_attempts
Required

Methods

to_json

Convert object into a json dictionary.

to_json

Convert object into a json dictionary.

to_json() -> Dict[str, int | str]

Returns

Type Description

The instance of the class converted into a json dictionary

Attributes

first_retry_interval_in_milliseconds

Get the first retry interval (ms).

Must be greater than 0

Returns

Type Description
int

The value indicating the first retry interval

max_number_of_attempts

Get Max Number of Attempts.

Returns

Type Description
int

Value indicating the max number of attempts to retry