@@ -66,8 +66,8 @@ class ServiceBusClient(object):
66
66
:keyword float retry_backoff_factor: Delta back-off internal in the unit of second between retries.
67
67
Default value is 0.8.
68
68
:keyword float retry_backoff_max: Maximum back-off interval in the unit of second. Default value is 120.
69
- :keyword retry_mode: The delay behavior between retry attempts. Supported values are ' fixed' or ' exponential' ,
70
- where default is ' exponential' .
69
+ :keyword retry_mode: The delay behavior between retry attempts. Supported values are " fixed" or " exponential" ,
70
+ where default is " exponential" .
71
71
:paramtype retry_mode: str
72
72
73
73
.. admonition:: Example:
@@ -90,8 +90,8 @@ def __init__(
90
90
* ,
91
91
retry_total : int = 3 ,
92
92
retry_backoff_factor : float = 0.8 ,
93
- retry_backoff_max : int = 120 ,
94
- retry_mode : str = ' exponential' ,
93
+ retry_backoff_max : float = 120 ,
94
+ retry_mode : str = " exponential" ,
95
95
** kwargs : Any
96
96
) -> None :
97
97
# If the user provided http:// or sb://, let's be polite and strip that.
@@ -278,14 +278,13 @@ def get_queue_receiver(
278
278
:keyword session_id: A specific session from which to receive. This must be specified for a
279
279
sessionful queue, otherwise it must be None. In order to receive messages from the next available
280
280
session, set this to ~azure.servicebus.NEXT_AVAILABLE_SESSION.
281
- :paramtype session_id: str or ~azure.servicebus.NEXT_AVAILABLE_SESSION
282
- :keyword sub_queue: If specified, the subqueue this receiver will
283
- connect to.
281
+ :paramtype session_id: str or ~azure.servicebus.NEXT_AVAILABLE_SESSION or None
282
+ :keyword sub_queue: If specified, the subqueue this receiver will connect to.
284
283
This includes the DEAD_LETTER and TRANSFER_DEAD_LETTER queues, holds messages that can't be delivered to any
285
284
receiver or messages that can't be processed.
286
285
The default is None, meaning connect to the primary queue. Can be assigned values from `ServiceBusSubQueue`
287
286
enum or equivalent string values "deadletter" and "transferdeadletter".
288
- :paramtype sub_queue: str or ~azure.servicebus.ServiceBusSubQueue
287
+ :paramtype sub_queue: str or ~azure.servicebus.ServiceBusSubQueue or None
289
288
:keyword receive_mode: The mode with which messages will be retrieved from the entity. The two options
290
289
are PEEK_LOCK and RECEIVE_AND_DELETE. Messages received with PEEK_LOCK must be settled within a given
291
290
lock period before they will be removed from the queue. Messages received with RECEIVE_AND_DELETE
@@ -431,14 +430,13 @@ def get_subscription_receiver(
431
430
:keyword session_id: A specific session from which to receive. This must be specified for a
432
431
sessionful subscription, otherwise it must be None. In order to receive messages from the next available
433
432
session, set this to ~azure.servicebus.NEXT_AVAILABLE_SESSION.
434
- :paramtype session_id: str or ~azure.servicebus.NEXT_AVAILABLE_SESSION
435
- :keyword sub_queue: If specified, the subqueue this receiver will
436
- connect to.
433
+ :paramtype session_id: str or ~azure.servicebus.NEXT_AVAILABLE_SESSION or None
434
+ :keyword sub_queue: If specified, the subqueue this receiver will connect to.
437
435
This includes the DEAD_LETTER and TRANSFER_DEAD_LETTER queues, holds messages that can't be delivered to any
438
436
receiver or messages that can't be processed.
439
437
The default is None, meaning connect to the primary queue. Can be assigned values from `ServiceBusSubQueue`
440
438
enum or equivalent string values "deadletter" and "transferdeadletter".
441
- :paramtype sub_queue: str or ~azure.servicebus.ServiceBusSubQueue
439
+ :paramtype sub_queue: str or ~azure.servicebus.ServiceBusSubQueue or None
442
440
:keyword receive_mode: The mode with which messages will be retrieved from the entity. The two options
443
441
are PEEK_LOCK and RECEIVE_AND_DELETE. Messages received with PEEK_LOCK must be settled within a given
444
442
lock period before they will be removed from the subscription. Messages received with RECEIVE_AND_DELETE
0 commit comments