c

kalix.scalasdk.replicatedentity

ReplicatedCounterMap

class ReplicatedCounterMap[K] extends InternalReplicatedData

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ReplicatedCounterMap
  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 = ReplicatedCounterMap[K]
    Definition Classes
    ReplicatedCounterMap → 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 ReplicatedCounterMap[K] toany2stringadd[ReplicatedCounterMap[K]] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (ReplicatedCounterMap[K], B)
    Implicit
    This member is added by an implicit conversion from ReplicatedCounterMap[K] toArrowAssoc[ReplicatedCounterMap[K]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. def apply(key: K): Long

    Get the counter value for the given key.

    Get the counter value for the given key.

    key

    the key to get the value for

    returns

    the current value of the counter at that key, or zero if no counter exists

  7. final def applyDelta: PartialFunction[Delta, ReplicatedCounterMap[K]]
    Definition Classes
    ReplicatedCounterMap → InternalReplicatedData
  8. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  9. def clear(): ReplicatedCounterMap[K]

    Remove all mappings from this counter map.

    Remove all mappings from this counter map.

    returns

    a new empty counter map

  10. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  11. def contains(key: K): Boolean

    Check whether this counter map contains a mapping for the given key.

    Check whether this counter map contains a mapping for the given key.

    key

    key whose presence in this map is to be tested

    returns

    true if this counter map contains a mapping for the given key

  12. def decrement(key: K, amount: Long): ReplicatedCounterMap[K]

    Decrement the counter at the given key by the given amount.

    Decrement the counter at the given key by the given amount.

    The counter will be created if it is not already in the map.

    key

    the key of the counter

    amount

    the amount to decrement by

    returns

    a new counter map with the decremented value

  13. val delegate: ReplicatedCounterMapImpl[K]
  14. def ensuring(cond: (ReplicatedCounterMap[K]) => Boolean, msg: => Any): ReplicatedCounterMap[K]
    Implicit
    This member is added by an implicit conversion from ReplicatedCounterMap[K] toEnsuring[ReplicatedCounterMap[K]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  15. def ensuring(cond: (ReplicatedCounterMap[K]) => Boolean): ReplicatedCounterMap[K]
    Implicit
    This member is added by an implicit conversion from ReplicatedCounterMap[K] toEnsuring[ReplicatedCounterMap[K]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  16. def ensuring(cond: Boolean, msg: => Any): ReplicatedCounterMap[K]
    Implicit
    This member is added by an implicit conversion from ReplicatedCounterMap[K] toEnsuring[ReplicatedCounterMap[K]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  17. def ensuring(cond: Boolean): ReplicatedCounterMap[K]
    Implicit
    This member is added by an implicit conversion from ReplicatedCounterMap[K] toEnsuring[ReplicatedCounterMap[K]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  18. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  20. def forall(predicate: ((K, Long)) => Boolean): Boolean

    Tests whether a predicate holds for all elements of this ReplicatedCounterMap.

    Tests whether a predicate holds for all elements of this ReplicatedCounterMap.

    predicate

    the predicate used to test elements.

    returns

    true if this ReplicatedCounterMap is empty or the given predicate pred holds for all elements of this ReplicatedCounterMap, otherwise false.

  21. def get(key: K): Option[Long]

    Optionally returns the value associated with a key.

    Optionally returns the value associated with a key.

    key

    the key value

    returns

    an option value containing the value associated with key in this map, or None if none exists.

  22. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  23. def getDelta: Delta
    Definition Classes
    InternalReplicatedData → InternalReplicatedData
  24. def hasDelta: Boolean
    Definition Classes
    InternalReplicatedData → InternalReplicatedData
  25. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  26. def increment(key: K, amount: Long): ReplicatedCounterMap[K]

    Increment the counter at the given key by the given amount.

    Increment the counter at the given key by the given amount.

    The counter will be created if it is not already in the map.

    key

    the key of the counter

    amount

    the amount to increment by

    returns

    a new counter map with the incremented value

  27. def isEmpty: Boolean

    Check whether this counter map is empty.

    Check whether this counter map is empty.

    returns

    true if this counter map contains no key-counter mappings

  28. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  29. def keySet: Set[K]

    Get a scala.collection.immutable.Set view of the keys contained in this counter map.

    Get a scala.collection.immutable.Set view of the keys contained in this counter map.

    returns

    the keys contained in this counter map

  30. def name: String
    Definition Classes
    InternalReplicatedData → InternalReplicatedData
  31. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  32. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  33. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  34. def remove(key: K): ReplicatedCounterMap[K]

    Remove the mapping for a key if it is present.

    Remove the mapping for a key if it is present.

    key

    key whose mapping is to be removed from the map

    returns

    a new counter map with the removed mapping

  35. final def resetDelta(): ReplicatedCounterMap[K]
    Definition Classes
    ReplicatedCounterMap → InternalReplicatedData
  36. def size: Int

    Get the number of key-counter mappings in this counter map.

    Get the number of key-counter mappings in this counter map.

    returns

    the number of key-counter mappings in this counter map

  37. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  38. final def toString(): String
    Definition Classes
    ReplicatedCounterMap → AnyRef → Any
  39. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  40. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  41. 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 ReplicatedCounterMap[K] toStringFormat[ReplicatedCounterMap[K]] 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): (ReplicatedCounterMap[K], B)
    Implicit
    This member is added by an implicit conversion from ReplicatedCounterMap[K] toArrowAssoc[ReplicatedCounterMap[K]] 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 fromReplicatedCounterMap[K] to any2stringadd[ReplicatedCounterMap[K]]

Inherited by implicit conversion StringFormat fromReplicatedCounterMap[K] to StringFormat[ReplicatedCounterMap[K]]

Inherited by implicit conversion Ensuring fromReplicatedCounterMap[K] to Ensuring[ReplicatedCounterMap[K]]

Inherited by implicit conversion ArrowAssoc fromReplicatedCounterMap[K] to ArrowAssoc[ReplicatedCounterMap[K]]

Ungrouped