Lease Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Contains partition ownership information.
public class Lease
type Lease = class
Public Class Lease
- Inheritance
-
Lease
Constructors
Lease() |
Initializes a new instance of the Lease class. |
Lease(Lease) |
Initializes a new instance of the Lease class with the specified Lease(Lease) value as reference. |
Properties
Epoch |
Gets or sets the epoch year of the lease, which is a value you can use to determine the most recent owner of a partition between competing nodes. |
Offset |
Gets or sets the current value for the offset in the stream. |
Owner |
Gets or sets the host owner for the partition. |
PartitionId |
Gets the ID of the partition to which this lease belongs. |
SequenceNumber |
Gets or sets the last checkpointed sequence number in the stream. |
Token |
Gets or sets the lease token that manages concurrency between hosts. You can use this token to guarantee single access to any resource needed by the IEventProcessor object. |
Methods
Equals(Object) |
Determines whether this instance is equal to the specified object. |
GetHashCode() |
Returns the hash code of the current instance. |
IsExpired() |
Determines whether the lease is expired. |
Applies to
Azure SDK for .NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기