ILeaseAcquireReasonProvider Interface

Definition

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.

public interface ILeaseAcquireReasonProvider
type ILeaseAcquireReasonProvider = interface
Public Interface ILeaseAcquireReasonProvider

Remarks

If lease was detected as Expired, etag conflict with a previous owner will fail the lease acquisition. Newer lease version indicates that the decision about lease expiration should be re-evaluated. For other acquire reasons such conflicts with unchanged owner can be retried.

Properties

AcquireReason

Gets or sets a reason of acquiring a lease which can be managed from IParitionLoadBalancingStrategy.

Applies to