Class TsakLockProps

Assembly: redb.Tsak.Core.Pro.dll

Redb props class for distributed locks (leader election, etc.).
Uses TTL-based expiry: if the holder doesn't renew before ,
another node can acquire the lock.

[RedbScheme("_tsak_locks")]
public class TsakLockProps

Inheritance

Object→TsakLockProps

Properties

AcquiredAt

Timestamp when the lock was acquired.

public DateTimeOffset AcquiredAt { get; set; }

ClusterName

Cluster this lock is scoped to. Null on a record written before cluster isolation (4.0.x and

public string? ClusterName { get; set; }

Epoch

Monotonic epoch counter incremented on each acquire.

public long Epoch { get; set; }

ExpiresAt

Timestamp when the lock expires if not renewed.

public DateTimeOffset ExpiresAt { get; set; }

GroupName

Cluster group this lock is scoped to.

public string GroupName { get; set; }

LockName

Unique lock name (e.g. "leader").

public string LockName { get; set; }

OwnerNodeId

Node ID of the current lock holder.

public string OwnerNodeId { get; set; }