Megosztás a következőn keresztül:


Microsoft.Azure.Documents.ChangeFeedProcessor.PartitionManagement Namespace

Classes

RemainingPartitionWork

Remaing estimated work on the partition

Interfaces

IChangeFeedProcessor

Provides an API to start and stop a Microsoft.Azure.Documents.ChangeFeedProcessor.ChangeFeedProcessor instance created by BuildAsync().

ILease

Represents a lease that is persisted as a document in the lease collection. Leases are used to:

ILeaseAcquireReasonProvider

Provides extensibility for ILease interface. ILease implementation can also can implement this interface to utilize the ability to set lease acquire reason from IParitionLoadBalancingStrategy. Lease acquire reason allows ILeaseStoreManager to handle conflicts on lease acquisition differently for different reasons.

IParitionLoadBalancingStrategy

A strategy defines which leases should be taken by the current host in a certain moment.

IRemainingWorkEstimator

Used to estimate the pending work remaining to be read in the Change Feed. Calculates the sum of pending work based on the difference between the latest status of the feed and the status of each existing lease.

Enums

LeaseAcquireReason

The reason why IParitionLoadBalancingStrategy chose to acquire a lease.