package
state
Type Members
-
case class
AppendEntries(term: Term, leaderId: NodeId, prevLogIndex: LogIndex, prevLogTerm: Term, entries: List[LogEntry], leaderCommit: LogIndex) extends RaftRequest with Product with Serializable
-
-
trait
Command extends AnyRef
-
case class
LeaderState(viewById: Map[NodeId, NodeView]) extends Product with Serializable
-
case class
Log(entries: List[LogEntry] = Nil) extends Product with Serializable
-
case class
LogEntry(term: Term, index: LogIndex, command: Command) extends Product with Serializable
-
type
LogIndex = Int
-
type
NodeId = String
-
sealed
trait
NodeRole extends AnyRef
-
case class
NodeView(nextIndex: LogIndex, matchIndex: LogIndex) extends Product with Serializable
-
case class
PersistentState(currentTerm: Term = Term(1), votedFor: Option[NodeId] = None, log: Log = Log()) extends Product with Serializable
-
-
sealed
trait
RaftRequest extends AnyRef
-
sealed
trait
RaftResponse extends AnyRef
-
case class
RequestVote(term: Term, candidateId: NodeId, lastLogIndex: LogIndex, lastLogTerm: Term) extends RaftRequest with Product with Serializable
-
case class
RequestVoteResponse(term: Term, granted: Boolean) extends RaftResponse with Product with Serializable
-
-
case class
Term(t: Int) extends Product with Serializable
-
trait
Transport extends AnyRef
-
case class
VolatileState(commitIndex: LogIndex = 0, lastApplied: LogIndex = 0) extends Product with Serializable
Inherited from AnyRef
Inherited from Any