Table of Contents

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

OwnerInstanceId string
AcquiredAt DateTime
Ttl TimeSpan

Properties

AcquiredAt

public DateTime AcquiredAt { get; init; }

Property Value

DateTime

ExpiresAt

When this lease expires (UTC). Used for fast-path rejection of stale leases.

public DateTime ExpiresAt { get; }

Property Value

DateTime

OwnerInstanceId

public string OwnerInstanceId { get; init; }

Property Value

string

Ttl

public TimeSpan Ttl { get; init; }

Property Value

TimeSpan