trait Vote extends Crdt
A Vote CRDT.
This CRDT is used to allow all the nodes in a cluster to vote on a condition.
- Alphabetic
- By Inheritance
- Vote
- Crdt
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
abstract
def
getSelfVote(): Boolean
Get the current value for this nodes vote.
Get the current value for this nodes vote.
- returns
This nodes vote.
-
abstract
def
getVoters(): Int
Get the number of voters participating in the vote (ie, the number of nodes in the cluster).
Get the number of voters participating in the vote (ie, the number of nodes in the cluster).
- returns
The number of voters.
-
abstract
def
getVotesFor(): Int
Get the number of votes for.
Get the number of votes for.
- returns
The number of votes for.
-
abstract
def
vote(vote: Boolean): Unit
Update this nodes vote to the given value.
Update this nodes vote to the given value.
- vote
The vote this node is contributing.
Concrete 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
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
isAtLeastOne(): Boolean
Has at least one node voted true?
Has at least one node voted true?
- returns
True if at least one node has voted true.
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isMajority(): Boolean
Have a majority of nodes voted true?
Have a majority of nodes voted true?
- returns
True if more than half of the nodes have voted true.
-
def
isUnanimous(): Boolean
Is the vote unanimous?
Is the vote unanimous?
- returns
True if all nodes have voted true.
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()