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

first_retry_interval_in_milliseconds
max_number_of_attempts

Methods

to_json

Convert object into a json dictionary.

to_json

Convert object into a json dictionary.

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

Returns

The instance of the class converted into a json dictionary

Return type

<xref:Dict>[str, <xref:Any>]

Attributes

first_retry_interval_in_milliseconds

Get the first retry interval (ms).

Must be greater than 0

Returns

The value indicating the first retry interval

Return type

int

max_number_of_attempts

Get Max Number of Attempts.

Returns

Value indicating the max number of attempts to retry

Return type

int