struct
Raft::Log::Metadata
- Raft::Log::Metadata
- Struct
- Value
- Object
Overview
Persistent metadata that survives restarts: the current term and the candidate this node voted for (if any) in the current term.
Defined in:
raft/log.crConstructors
Instance Method Summary
- #clone
- #copy_with(current_term _current_term = @current_term, voted_for _voted_for = @voted_for)
- #current_term : UInt64
- #voted_for : String | Nil
Constructor Detail
Instance Method Detail
def copy_with(current_term _current_term = @current_term, voted_for _voted_for = @voted_for)
#