package
state
Type Members
-
case class
AppendEntries[T](term: Term, leaderId: NodeId, prevLogIndex: LogIndex, prevLogTerm: Term, entries: List[LogEntry[T]], leaderCommit: LogIndex) extends RaftRequest with Product with Serializable
-
-
case class
Candidate extends NodeRole with Product with Serializable
-
case class
ClusterPeer(matchIndex: LogIndex, nextIndex: LogIndex) extends Product with Serializable
-
-
case class
Leader(clusterViewByNodeId: Map[NodeId, ClusterPeer]) extends NodeRole with Product with Serializable
-
trait
Log[Command] extends AnyRef
-
case class
LogEntry[Command](term: Term, index: LogIndex, command: Command) extends Product with Serializable
-
type
LogIndex = Int
-
type
NodeId = String
-
sealed
trait
NodeRole extends AnyRef
-
-
case class
RaftConfig(config: Config) extends Product with Serializable
-
-
class
RaftNode[T] extends AnyRef
-
sealed
trait
RaftRequest extends AnyRef
-
sealed
trait
RaftResponse extends AnyRef
-
case class
RaftState[T](role: NodeRole, persistentState: PersistentState[T]) extends Product with Serializable
-
trait
RaftTimer 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 Ordered[Term] with Product with Serializable
Value Members
-
object
Candidate extends Serializable
-
object
ClusterPeer extends Serializable
-
-
object
Follower extends NodeRole with Product with Serializable
-
object
Log
-
-
-
-
-
object
RaftState extends Serializable
-
-
def
isMajority(n: Int, total: Int): Boolean
-
Inherited from AnyRef
Inherited from Any