enum
Raft::Log::EntryType
Overview
The type of a log entry, stored as a single byte on the wire.
Defined in:
raft/log/entry.crEnum Members
-
Noop =
0_u8 -
No-op entry. Appended by a new leader to establish commit authority.
-
Op =
1_u8 -
Client command. Applied to the state machine when committed.
-
Config =
2_u8 -
Cluster membership change. Updates the peer list when committed.
Instance Method Summary
-
#config?
Returns
trueif this enum value equalsConfig -
#noop?
Returns
trueif this enum value equalsNoop -
#op?
Returns
trueif this enum value equalsOp