共用方式為


EventHubOptions.PartitionOwnershipExpirationInterval Property

Definition

The desired amount of time to consider a partition owned by a specific event processor instance before the ownership is considered stale and the partition becomes eligible to be requested by another event processor that wishes to assume responsibility for processing it.

public TimeSpan PartitionOwnershipExpirationInterval { get; set; }
member this.PartitionOwnershipExpirationInterval : TimeSpan with get, set
Public Property PartitionOwnershipExpirationInterval As TimeSpan

Property Value

The default ownership interval is 2 minutes.

Exceptions

Occurs when the requested interval is negative.

Remarks

As a general guideline, it is advised that this value be greater than the configured LoadBalancingUpdateInterval by at least a factor of two. It is recommended that this be a factor of three or more, unless there are application scenarios that require more aggressive ownership expiration.

Applies to