Class LeaderSnapshot
A consistent, point-in-time view of leadership. Read it (via )
when you need IsLeader and Epoch to belong to the SAME election — reading the two
separate getters can tear across a concurrent re-election (review item 4.3).
public sealed record LeaderSnapshot : IEquatable<LeaderSnapshot>
Inheritance
Implements
Properties
Epoch
public long Epoch { get; init; }
IsLeader
public bool IsLeader { get; init; }
LeaderNodeId
public string? LeaderNodeId { get; init; }
Constructors
LeaderSnapshot(bool, long, string?)
A consistent, point-in-time view of leadership. Read it (via )