Class LoadBalancingProperties
java.lang.Object
com.azure.spring.cloud.service.eventhubs.properties.LoadBalancingProperties
- All Implemented Interfaces:
com.azure.spring.cloud.service.implementation.eventhubs.properties.EventProcessorClientProperties.LoadBalancing
public class LoadBalancingProperties
extends Object
implements com.azure.spring.cloud.service.implementation.eventhubs.properties.EventProcessorClientProperties.LoadBalancing
Event processor load balancing properties.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the time duration after which the ownership of partition expires.com.azure.messaging.eventhubs.LoadBalancingStrategy
Get the load balancing strategy for claiming partition ownership.Get the time interval between load balancing update cycles.void
setPartitionOwnershipExpirationInterval
(Duration partitionOwnershipExpirationInterval) Set the partition ownership expiration interval.void
setStrategy
(com.azure.messaging.eventhubs.LoadBalancingStrategy strategy) Set the load balancing strategy.void
setUpdateInterval
(Duration updateInterval) Set the update interval.
-
Constructor Details
-
LoadBalancingProperties
public LoadBalancingProperties()
-
-
Method Details
-
getUpdateInterval
Description copied from interface:com.azure.spring.cloud.service.implementation.eventhubs.properties.EventProcessorClientProperties.LoadBalancing
Get the time interval between load balancing update cycles.- Specified by:
getUpdateInterval
in interfacecom.azure.spring.cloud.service.implementation.eventhubs.properties.EventProcessorClientProperties.LoadBalancing
- Returns:
- the update interval.
-
setUpdateInterval
Set the update interval.- Parameters:
updateInterval
- The update interval.
-
getStrategy
public com.azure.messaging.eventhubs.LoadBalancingStrategy getStrategy()Description copied from interface:com.azure.spring.cloud.service.implementation.eventhubs.properties.EventProcessorClientProperties.LoadBalancing
Get the load balancing strategy for claiming partition ownership.- Specified by:
getStrategy
in interfacecom.azure.spring.cloud.service.implementation.eventhubs.properties.EventProcessorClientProperties.LoadBalancing
- Returns:
- the load balancing strategy.
-
setStrategy
public void setStrategy(com.azure.messaging.eventhubs.LoadBalancingStrategy strategy) Set the load balancing strategy.- Parameters:
strategy
- The load balancing strategy.
-
getPartitionOwnershipExpirationInterval
Description copied from interface:com.azure.spring.cloud.service.implementation.eventhubs.properties.EventProcessorClientProperties.LoadBalancing
Get the time duration after which the ownership of partition expires.- Specified by:
getPartitionOwnershipExpirationInterval
in interfacecom.azure.spring.cloud.service.implementation.eventhubs.properties.EventProcessorClientProperties.LoadBalancing
- Returns:
- the expiration interval.
-
setPartitionOwnershipExpirationInterval
Set the partition ownership expiration interval.- Parameters:
partitionOwnershipExpirationInterval
- the partition ownership expiration interval.
-