RaftState

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

Attributes

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

Members list

Concise view

Value members

Concrete methods

def propose(me: Id, value: T): RaftState[T]
def proposeDelta(me: Id, value: T): 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: Id
val maxTerm: Int
val nextProposal: Int
lazy val values: List[T]