@@ -60,6 +60,8 @@ class ServiceBusClient(object):
60
60
:keyword float retry_backoff_factor: Delta back-off internal in the unit of second between retries.
61
61
Default value is 0.8.
62
62
:keyword float retry_backoff_max: Maximum back-off interval in the unit of second. Default value is 120.
63
+ :keyword retry_mode: Fixed or exponential delay between attempts, default is exponential.
64
+ :paramtype retry_mode: ~azure.servicebus.RetryMode
63
65
64
66
.. admonition:: Example:
65
67
@@ -152,6 +154,8 @@ def from_connection_string(cls, conn_str, **kwargs):
152
154
:keyword float retry_backoff_factor: Delta back-off internal in the unit of second between retries.
153
155
Default value is 0.8.
154
156
:keyword float retry_backoff_max: Maximum back-off interval in the unit of second. Default value is 120.
157
+ :keyword retry_mode: Fixed or exponential delay between attempts, default is exponential.
158
+ :paramtype retry_mode: ~azure.servicebus.RetryMode
155
159
:rtype: ~azure.servicebus.ServiceBusClient
156
160
157
161
.. admonition:: Example:
@@ -212,6 +216,7 @@ def get_queue_sender(self, queue_name, **kwargs):
212
216
http_proxy = self ._config .http_proxy ,
213
217
connection = self ._connection ,
214
218
user_agent = self ._config .user_agent ,
219
+ retry_mode = self ._config .retry_mode ,
215
220
retry_total = self ._config .retry_total ,
216
221
retry_backoff_factor = self ._config .retry_backoff_factor ,
217
222
retry_backoff_max = self ._config .retry_backoff_max ,
@@ -303,6 +308,7 @@ def get_queue_receiver(self, queue_name, **kwargs):
303
308
http_proxy = self ._config .http_proxy ,
304
309
connection = self ._connection ,
305
310
user_agent = self ._config .user_agent ,
311
+ retry_mode = self ._config .retry_mode ,
306
312
retry_total = self ._config .retry_total ,
307
313
retry_backoff_factor = self ._config .retry_backoff_factor ,
308
314
retry_backoff_max = self ._config .retry_backoff_max ,
@@ -344,6 +350,7 @@ def get_topic_sender(self, topic_name, **kwargs):
344
350
http_proxy = self ._config .http_proxy ,
345
351
connection = self ._connection ,
346
352
user_agent = self ._config .user_agent ,
353
+ retry_mode = self ._config .retry_mode ,
347
354
retry_total = self ._config .retry_total ,
348
355
retry_backoff_factor = self ._config .retry_backoff_factor ,
349
356
retry_backoff_max = self ._config .retry_backoff_max ,
@@ -433,6 +440,7 @@ def get_subscription_receiver(self, topic_name, subscription_name, **kwargs):
433
440
http_proxy = self ._config .http_proxy ,
434
441
connection = self ._connection ,
435
442
user_agent = self ._config .user_agent ,
443
+ retry_mode = self ._config .retry_mode ,
436
444
retry_total = self ._config .retry_total ,
437
445
retry_backoff_factor = self ._config .retry_backoff_factor ,
438
446
retry_backoff_max = self ._config .retry_backoff_max ,
@@ -453,6 +461,7 @@ def get_subscription_receiver(self, topic_name, subscription_name, **kwargs):
453
461
http_proxy = self ._config .http_proxy ,
454
462
connection = self ._connection ,
455
463
user_agent = self ._config .user_agent ,
464
+ retry_mode = self ._config .retry_mode ,
456
465
retry_total = self ._config .retry_total ,
457
466
retry_backoff_factor = self ._config .retry_backoff_factor ,
458
467
retry_backoff_max = self ._config .retry_backoff_max ,
0 commit comments