class ReplicatedCounter extends InternalReplicatedData

A counter that can be incremented and decremented.

Source
ReplicatedCounter.scala
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ReplicatedCounter
  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 = ReplicatedCounter
    Definition Classes
    ReplicatedCounter → 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 ReplicatedCounter toany2stringadd[ReplicatedCounter] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (ReplicatedCounter, B)
    Implicit
    This member is added by an implicit conversion from ReplicatedCounter toArrowAssoc[ReplicatedCounter] 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, ReplicatedCounter]
    Definition Classes
    ReplicatedCounter → 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. def decrement(amount: Long): ReplicatedCounter

    Decrement the counter.

    Decrement the counter.

    If amount is negative, then the counter will be incremented by that much instead.

    amount

    the amount to decrement the counter by

    returns

    a new counter with decremented value

  10. val delegate: ReplicatedCounterImpl
  11. def ensuring(cond: (ReplicatedCounter) => Boolean, msg: => Any): ReplicatedCounter
    Implicit
    This member is added by an implicit conversion from ReplicatedCounter toEnsuring[ReplicatedCounter] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. def ensuring(cond: (ReplicatedCounter) => Boolean): ReplicatedCounter
    Implicit
    This member is added by an implicit conversion from ReplicatedCounter toEnsuring[ReplicatedCounter] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  13. def ensuring(cond: Boolean, msg: => Any): ReplicatedCounter
    Implicit
    This member is added by an implicit conversion from ReplicatedCounter toEnsuring[ReplicatedCounter] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. def ensuring(cond: Boolean): ReplicatedCounter
    Implicit
    This member is added by an implicit conversion from ReplicatedCounter toEnsuring[ReplicatedCounter] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  15. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  17. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  18. def getDelta: Delta
    Definition Classes
    InternalReplicatedData → InternalReplicatedData
  19. def hasDelta: Boolean
    Definition Classes
    InternalReplicatedData → InternalReplicatedData
  20. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  21. def increment(amount: Long): ReplicatedCounter

    Increment the counter.

    Increment the counter.

    If amount is negative, then the counter will be decremented by that much instead.

    amount

    the amount to increment the counter by

    returns

    a new counter with incremented value

  22. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  23. def name: String
    Definition Classes
    InternalReplicatedData → InternalReplicatedData
  24. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  25. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  26. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  27. final def resetDelta(): ReplicatedCounter
    Definition Classes
    ReplicatedCounter → InternalReplicatedData
  28. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  29. def toString(): String
    Definition Classes
    AnyRef → Any
  30. def value: Long

    Get the current value of the counter.

    Get the current value of the counter.

    returns

    the current value of the counter

  31. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  32. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  33. 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 ReplicatedCounter toStringFormat[ReplicatedCounter] 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): (ReplicatedCounter, B)
    Implicit
    This member is added by an implicit conversion from ReplicatedCounter toArrowAssoc[ReplicatedCounter] 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 fromReplicatedCounter to any2stringadd[ReplicatedCounter]

Inherited by implicit conversion StringFormat fromReplicatedCounter to StringFormat[ReplicatedCounter]

Inherited by implicit conversion Ensuring fromReplicatedCounter to Ensuring[ReplicatedCounter]

Inherited by implicit conversion ArrowAssoc fromReplicatedCounter to ArrowAssoc[ReplicatedCounter]

Ungrouped