/
azure.storage.blob.ExponentialRetry.yml
131 lines (121 loc) · 3.96 KB
/
azure.storage.blob.ExponentialRetry.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
### YamlMime:PythonClass
uid: azure.storage.blob.ExponentialRetry
name: ExponentialRetry
fullName: azure.storage.blob.ExponentialRetry
module: azure.storage.blob
inheritances:
- azure.storage.blob._shared.policies.StorageRetryPolicy
summary: 'Exponential retry.
Constructs an Exponential retry object. The initial_backoff is used for
the first retry. Subsequent retries are retried after initial_backoff +
increment_power^retry_count seconds.'
constructor:
syntax: ExponentialRetry(initial_backoff=15, increment_base=3, retry_total=3, retry_to_secondary=False,
random_jitter_range=3, **kwargs)
parameters:
- name: initial_backoff
description: The initial backoff interval, in seconds, for the first retry.
defaultValue: '15'
types:
- <xref:int>
- name: increment_base
description: 'The base, in seconds, to increment the initial_backoff by after
the
first retry.'
defaultValue: '3'
types:
- <xref:int>
- name: max_attempts
description: The maximum number of retry attempts.
isRequired: true
types:
- <xref:int>
- name: retry_to_secondary
description: 'Whether the request should be retried to secondary, if able. This
should
only be enabled of RA-GRS accounts are used and potentially stale data
can be handled.'
defaultValue: 'False'
types:
- <xref:bool>
- name: random_jitter_range
description: 'A number in seconds which indicates a range to jitter/randomize
for the back-off interval.
For example, a random_jitter_range of 3 results in the back-off interval x to
vary between x+3 and x-3.'
defaultValue: '3'
types:
- <xref:int>
- name: retry_total
defaultValue: '3'
methods:
- uid: azure.storage.blob.ExponentialRetry.configure_retries
name: configure_retries
signature: configure_retries(request)
parameters:
- name: request
isRequired: true
- uid: azure.storage.blob.ExponentialRetry.get_backoff_time
name: get_backoff_time
summary: Calculates how long to sleep before retrying.
signature: get_backoff_time(settings)
parameters:
- name: settings
description: The configurable values pertaining to get backoff time.
isRequired: true
types:
- <xref:typing.Optional>[<xref:typing.Dict>[<xref:str>, <xref:typing.Any>]]
return:
description: 'An integer indicating how long to wait before retrying the request,
or None to indicate no retry should be performed.'
types:
- <xref:int>
- <xref:None>
- uid: azure.storage.blob.ExponentialRetry.increment
name: increment
summary: Increment the retry counters.
signature: increment(settings, request, response=None, error=None)
parameters:
- name: settings
description: The configurable values pertaining to the increment operation.
isRequired: true
types:
- <xref:typing.Optional>[<xref:typing.Dict>[<xref:str>, <xref:typing.Any>]]
- name: request
description: A pipeline request object.
isRequired: true
types:
- <xref:<xref:"PipelineRequest">>
- name: '"PipelineResponse"'
description: A pipeline response object.
isRequired: true
- name: error
description: 'An error encountered during the request, or
None if the response was received successfully.'
defaultValue: None
- name: response
defaultValue: None
return:
description: Whether the retry attempts are exhausted.
types:
- <xref:bool>
- uid: azure.storage.blob.ExponentialRetry.send
name: send
signature: send(request)
parameters:
- name: request
isRequired: true
- uid: azure.storage.blob.ExponentialRetry.sleep
name: sleep
signature: sleep(settings, transport)
parameters:
- name: settings
isRequired: true
- name: transport
isRequired: true
attributes:
- uid: azure.storage.blob.ExponentialRetry.next
name: next
summary: Pointer to the next policy or a transport (wrapped as a policy). Will be
set at pipeline creation.
signature: 'next: HTTPPolicy[HTTPRequestType, HTTPResponseType]'