Share via


IParitionLoadBalancingStrategy.SelectLeasesToTake Method

Definition

Select leases that should be taken for processing. This method will be called periodically with LeaseAcquireInterval

public System.Collections.Generic.IEnumerable<Microsoft.Azure.Documents.ChangeFeedProcessor.PartitionManagement.ILease> SelectLeasesToTake (System.Collections.Generic.IEnumerable<Microsoft.Azure.Documents.ChangeFeedProcessor.PartitionManagement.ILease> allLeases);
abstract member SelectLeasesToTake : seq<Microsoft.Azure.Documents.ChangeFeedProcessor.PartitionManagement.ILease> -> seq<Microsoft.Azure.Documents.ChangeFeedProcessor.PartitionManagement.ILease>
Public Function SelectLeasesToTake (allLeases As IEnumerable(Of ILease)) As IEnumerable(Of ILease)

Parameters

allLeases
IEnumerable<ILease>

All leases

Returns

Leases that should be taken for processing by this host

Applies to