class ReplicatedVote extends InternalReplicatedData

A Vote replicated data type.

This replicated data type is used to allow all the nodes in a cluster to vote on a condition.

Source
ReplicatedVote.scala
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ReplicatedVote
  2. InternalReplicatedData
  3. InternalReplicatedData
  4. ReplicatedData
  5. AnyRef
  6. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. final type Self = ReplicatedVote
    Definition Classes
    ReplicatedVote → InternalReplicatedData

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from ReplicatedVote toany2stringadd[ReplicatedVote] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (ReplicatedVote, B)
    Implicit
    This member is added by an implicit conversion from ReplicatedVote toArrowAssoc[ReplicatedVote] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. final def applyDelta: PartialFunction[Delta, ReplicatedVote]
    Definition Classes
    ReplicatedVote → InternalReplicatedData
  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  9. val delegate: ReplicatedVoteImpl
  10. def ensuring(cond: (ReplicatedVote) => Boolean, msg: => Any): ReplicatedVote
    Implicit
    This member is added by an implicit conversion from ReplicatedVote toEnsuring[ReplicatedVote] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  11. def ensuring(cond: (ReplicatedVote) => Boolean): ReplicatedVote
    Implicit
    This member is added by an implicit conversion from ReplicatedVote toEnsuring[ReplicatedVote] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. def ensuring(cond: Boolean, msg: => Any): ReplicatedVote
    Implicit
    This member is added by an implicit conversion from ReplicatedVote toEnsuring[ReplicatedVote] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  13. def ensuring(cond: Boolean): ReplicatedVote
    Implicit
    This member is added by an implicit conversion from ReplicatedVote toEnsuring[ReplicatedVote] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  16. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  17. def getDelta: Delta
    Definition Classes
    InternalReplicatedData → InternalReplicatedData
  18. def hasDelta: Boolean
    Definition Classes
    InternalReplicatedData → InternalReplicatedData
  19. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  20. 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

  21. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  22. 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

  23. def isUnanimous: Boolean

    Is the vote unanimous?

    Is the vote unanimous?

    returns

    true if all nodes have voted true

  24. def name: String
    Definition Classes
    InternalReplicatedData → InternalReplicatedData
  25. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  26. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  27. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  28. final def resetDelta(): ReplicatedVote
    Definition Classes
    ReplicatedVote → InternalReplicatedData
  29. def selfVote: Boolean

    Get the current value for this node's vote.

    Get the current value for this node's vote.

    returns

    this node's vote

  30. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  31. def toString(): String
    Definition Classes
    AnyRef → Any
  32. def vote(vote: Boolean): ReplicatedVote

    Update this node's vote to the given value.

    Update this node's vote to the given value.

    vote

    the vote this node is contributing

    returns

    a new vote, or this unchanged vote

  33. def voters: 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

  34. def votesFor: Int

    Get the number of votes for.

    Get the number of votes for.

    returns

    the number of votes for

  35. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  36. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  37. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

  2. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from ReplicatedVote toStringFormat[ReplicatedVote] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.12.16) Use formatString.format(value) instead of value.formatted(formatString), or use the f"" string interpolator. In Java 15 and later, formatted resolves to the new method in String which has reversed parameters.

  3. def [B](y: B): (ReplicatedVote, B)
    Implicit
    This member is added by an implicit conversion from ReplicatedVote toArrowAssoc[ReplicatedVote] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use -> instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.

Inherited from InternalReplicatedData

Inherited from ReplicatedData

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd fromReplicatedVote to any2stringadd[ReplicatedVote]

Inherited by implicit conversion StringFormat fromReplicatedVote to StringFormat[ReplicatedVote]

Inherited by implicit conversion Ensuring fromReplicatedVote to Ensuring[ReplicatedVote]

Inherited by implicit conversion ArrowAssoc fromReplicatedVote to ArrowAssoc[ReplicatedVote]

Ungrouped