RaftState

kofre.datatypes.experiments.RaftState
See theRaftState companion object
case class RaftState[T](participants: Set[Uid], leaderVotes: Set[Vote], valueProposals: Set[Propose[T]])

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def propose(me: Uid, value: T): RaftState[T]
def proposeDelta(me: Uid, value: T): RaftState[T]
def supportLeader(me: Uid): RaftState[T]

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product

Concrete fields

lazy val byRound: IndexedSeq[Set[Propose[T]]]
val consensusSize: Int
val currentTerm: Int
val leader: Uid
val maxTerm: Int
val nextProposal: Int
lazy val values: List[T]