rescala
.
extra
.
lattices
RaftState
Related Docs:
object RaftState
|
package lattices
case class
RaftState
[
T
]
(
participants:
Set
[
Id
] =
Set.empty
,
leaderVotes:
Set
[
Vote
] =
Set.empty
,
valueProposals:
Set
[
Propose
[
T
]] =
Set.empty[Propose[T]]
)
extends
Product
with
Serializable
Linear Supertypes
Serializable
,
Serializable
,
Product
,
Equals
,
AnyRef
,
Any
Ordering
Alphabetic
By Inheritance
Inherited
RaftState
Serializable
Serializable
Product
Equals
AnyRef
Any
Hide All
Show All
Visibility
Public
All
Instance Constructors
new
RaftState
(
participants:
Set
[
Id
] =
Set.empty
,
leaderVotes:
Set
[
Vote
] =
Set.empty
,
valueProposals:
Set
[
Propose
[
T
]] =
Set.empty[Propose[T]]
)
Value Members
final
def
!=
(
arg0:
Any
)
:
Boolean
Definition Classes
AnyRef → Any
final
def
##
()
:
Int
Definition Classes
AnyRef → Any
final
def
==
(
arg0:
Any
)
:
Boolean
Definition Classes
AnyRef → Any
final
def
asInstanceOf
[
T0
]
:
T0
Definition Classes
Any
def
becomeCandidate
(
me:
Id
)
:
RaftState
[
T
]
def
becomeCandidateDelta
(
me:
Id
)
:
RaftState
[
T
]
def
clone
()
:
AnyRef
Attributes
protected[
java.lang
]
Definition Classes
AnyRef
Annotations
@IntrinsicCandidate
()
@throws
(
...
)
def
compress
:
RaftState
[
T
]
val
consensusSize
:
Int
val
currentTerm
:
Int
final
def
eq
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
final
def
getClass
()
:
Class
[_]
Definition Classes
AnyRef → Any
Annotations
@IntrinsicCandidate
()
final
def
isInstanceOf
[
T0
]
:
Boolean
Definition Classes
Any
val
leader
:
Id
val
leaderVotes
:
Set
[
Vote
]
val
maxTerm
:
Int
final
def
ne
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
val
nextProposal
:
Int
final
def
notify
()
:
Unit
Definition Classes
AnyRef
Annotations
@IntrinsicCandidate
()
final
def
notifyAll
()
:
Unit
Definition Classes
AnyRef
Annotations
@IntrinsicCandidate
()
val
participants
:
Set
[
Id
]
def
propose
(
me:
Id
,
value:
T
)
:
RaftState
[
T
]
def
proposeDelta
(
me:
Id
,
value:
T
)
:
RaftState
[
T
]
def
supportLeader
(
me:
Id
)
:
RaftState
[
T
]
def
supportLeaderDelta
(
me:
Id
)
:
RaftState
[
T
]
def
supportProposal
(
me:
Id
)
:
RaftState
[
T
]
def
supportProposalDelta
(
me:
Id
)
:
RaftState
[
T
]
final
def
synchronized
[
T0
]
(
arg0: ⇒
T0
)
:
T0
Definition Classes
AnyRef
val
valueProposals
:
Set
[
Propose
[
T
]]
lazy val
values
:
List
[
T
]
final
def
wait
(
arg0:
Long
,
arg1:
Int
)
:
Unit
Definition Classes
AnyRef
Annotations
@throws
(
...
)
final
def
wait
(
arg0:
Long
)
:
Unit
Definition Classes
AnyRef
Annotations
@throws
(
...
)
final
def
wait
()
:
Unit
Definition Classes
AnyRef
Annotations
@throws
(
...
)
Deprecated Value Members
def
finalize
()
:
Unit
Attributes
protected[
java.lang
]
Definition Classes
AnyRef
Annotations
@Deprecated
@deprecated
@throws
(
classOf[java.lang.Throwable]
)
Deprecated
(Since version )
see corresponding Javadoc for more information.
Inherited from
Serializable
Inherited from
Serializable
Inherited from
Product
Inherited from
Equals
Inherited from
AnyRef
Inherited from
Any
Ungrouped