VoteDenied

data class VoteDenied(val clock: Long, val from: NodeId, val to: NodeId, val term: Long, val reasons: Set<DenyReason>) : RaftTraceEvent

Vote denied to a candidate.

reasons is the attribution to assert against; reason is a derived projection of it. See DenyReason for why a denial can carry more than one.

Constructors

Link copied to clipboard
constructor(clock: Long, from: NodeId, to: NodeId, term: Long, reasons: Set<DenyReason>)

Properties

Link copied to clipboard
open override val clock: Long

Logical monotonic clock — incremented on every emitted event.

Link copied to clipboard
Link copied to clipboard

The first-failing reason — the head of reasons, not the only reason the vote failed.

Link copied to clipboard

Every conjunct of the vote decision that failed, ordered most-specific-first by the responder. Never empty on a denial.

Link copied to clipboard
val term: Long
Link copied to clipboard
val to: NodeId