Class LeaderLease
- Namespace
- Virtufin.WorkManager.Services
- Assembly
- Virtufin.WorkManager.dll
Persistent lease record stored at LeaseKey.
public sealed record LeaderLease : IEquatable<LeaderLease>
- Inheritance
-
LeaderLease
- Implements
- Inherited Members
Constructors
LeaderLease(string, DateTime, TimeSpan)
Persistent lease record stored at LeaseKey.
public LeaderLease(string OwnerInstanceId, DateTime AcquiredAt, TimeSpan Ttl)
Parameters
Properties
AcquiredAt
public DateTime AcquiredAt { get; init; }
Property Value
ExpiresAt
When this lease expires (UTC). Used for fast-path rejection of stale leases.
public DateTime ExpiresAt { get; }
Property Value
OwnerInstanceId
public string OwnerInstanceId { get; init; }
Property Value
Ttl
public TimeSpan Ttl { get; init; }