@@ -91,7 +91,7 @@ class EventHubConsumerClient(ClientBase):
91
91
of seconds. Every load-balancing evaluation will automatically extend the ownership expiration time.
92
92
Default is 6 * load_balancing_interval, i.e. 60 seconds when using the default load_balancing_interval
93
93
of 10 seconds.
94
- :keyword str or ~azure.eventhub.LoadBalancingStrategy load_balancing_strategy: When load-balancing kicks in,
94
+ :keyword load_balancing_strategy: When load-balancing kicks in,
95
95
it will use this strategy to claim and balance the partition ownership.
96
96
Use "greedy" or `LoadBalancingStrategy.GREEDY` for the greedy strategy, which, for every
97
97
load-balancing evaluation, will grab as many unclaimed partitions required to balance the load.
@@ -101,6 +101,7 @@ class EventHubConsumerClient(ClientBase):
101
101
too few partitions, this client will steal one partition from other clients for every load-balancing
102
102
evaluation regardless of the load balancing strategy.
103
103
Greedy strategy is used by default.
104
+ :paramtype load_balancing_strategy: str or ~azure.eventhub.LoadBalancingStrategy
104
105
105
106
106
107
.. admonition:: Example:
@@ -225,7 +226,7 @@ def from_connection_string(cls, conn_str, consumer_group, **kwargs):
225
226
of seconds. Every load-balancing evaluation will automatically extend the ownership expiration time.
226
227
Default is 6 * load_balancing_interval, i.e. 60 seconds when using the default load_balancing_interval
227
228
of 10 seconds.
228
- :keyword str or ~azure.eventhub.LoadBalancingStrategy load_balancing_strategy: When load-balancing kicks in,
229
+ :keyword load_balancing_strategy: When load-balancing kicks in,
229
230
it will use this strategy to claim and balance the partition ownership.
230
231
Use "greedy" or `LoadBalancingStrategy.GREEDY` for the greedy strategy, which, for every
231
232
load-balancing evaluation, will grab as many unclaimed partitions required to balance the load.
@@ -235,6 +236,7 @@ def from_connection_string(cls, conn_str, consumer_group, **kwargs):
235
236
too few partitions, this client will steal one partition from other clients for every load-balancing
236
237
evaluation regardless of the load balancing strategy.
237
238
Greedy strategy is used by default.
239
+ :paramtype load_balancing_strategy: str or ~azure.eventhub.LoadBalancingStrategy
238
240
239
241
:rtype: ~azure.eventhub.EventHubConsumerClient
240
242
0 commit comments