c

kalix.scalasdk.replicatedentity

ReplicatedRegisterMap

class ReplicatedRegisterMap[K, V] extends InternalReplicatedData

A Map of registers. Uses ReplicatedRegister 's as values.

K

The type for keys.

V

The type for values.

Source
ReplicatedRegisterMap.scala
Linear Supertypes
InternalReplicatedData, javasdk.impl.replicatedentity.InternalReplicatedData, ReplicatedData, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ReplicatedRegisterMap
  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 = ReplicatedRegisterMap[K, V]
    Definition Classes
    ReplicatedRegisterMap → 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 ReplicatedRegisterMap[K, V] toany2stringadd[ReplicatedRegisterMap[K, V]] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (ReplicatedRegisterMap[K, V], B)
    Implicit
    This member is added by an implicit conversion from ReplicatedRegisterMap[K, V] toArrowAssoc[ReplicatedRegisterMap[K, V]] 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): V

    Get the register value for the given key.

    Get the register value for the given key.

    key

    the key for the register

    returns

    the register value for the key

    Exceptions thrown

    NoSuchElementException if the key is not preset in the map

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

    Remove all mappings from this register map.

    Remove all mappings from this register map.

    returns

    a new empty register map

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

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

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

    key

    key whose presence in this map is to be tested

    returns

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

  12. val delegate: ReplicatedRegisterMapImpl[K, V]
  13. def ensuring(cond: (ReplicatedRegisterMap[K, V]) => Boolean, msg: => Any): ReplicatedRegisterMap[K, V]
    Implicit
    This member is added by an implicit conversion from ReplicatedRegisterMap[K, V] toEnsuring[ReplicatedRegisterMap[K, V]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. def ensuring(cond: (ReplicatedRegisterMap[K, V]) => Boolean): ReplicatedRegisterMap[K, V]
    Implicit
    This member is added by an implicit conversion from ReplicatedRegisterMap[K, V] toEnsuring[ReplicatedRegisterMap[K, V]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  15. def ensuring(cond: Boolean, msg: => Any): ReplicatedRegisterMap[K, V]
    Implicit
    This member is added by an implicit conversion from ReplicatedRegisterMap[K, V] toEnsuring[ReplicatedRegisterMap[K, V]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  16. def ensuring(cond: Boolean): ReplicatedRegisterMap[K, V]
    Implicit
    This member is added by an implicit conversion from ReplicatedRegisterMap[K, V] toEnsuring[ReplicatedRegisterMap[K, V]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  17. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  19. def get(key: K): Option[V]

    Optionally returns the current value of the register at the given key.

    Optionally returns the current value of the register at the given key.

    key

    the key for the register

    returns

    the current value of the register, if it exists (as an Option)

  20. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  21. def getDelta: Delta
    Definition Classes
    InternalReplicatedData → InternalReplicatedData
  22. def hasDelta: Boolean
    Definition Classes
    InternalReplicatedData → InternalReplicatedData
  23. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  24. def isEmpty: Boolean

    Check whether this register map is empty.

    Check whether this register map is empty.

    returns

    true if this register map contains no key-register mappings

  25. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  26. def keySet: Set[K]

    Get a Set view of the keys contained in this register map.

    Get a Set view of the keys contained in this register map.

    returns

    the keys contained in this register map

  27. def name: String
    Definition Classes
    InternalReplicatedData → InternalReplicatedData
  28. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  29. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  30. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  31. def remove(key: K): ReplicatedRegisterMap[K, V]

    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 register map with the removed mapping

  32. final def resetDelta(): ReplicatedRegisterMap[K, V]
    Definition Classes
    ReplicatedRegisterMap → InternalReplicatedData
  33. def setValue(key: K, value: V, clock: Clock, customClockValue: Long): ReplicatedRegisterMap[K, V]

    Set the current value of the register at the given key, using the given clock and custom clock value if required.

    Set the current value of the register at the given key, using the given clock and custom clock value if required.

    key

    the key for the register

    value

    the new value of the register

    clock

    the clock to use for replication

    customClockValue

    the custom clock value to use, only if it's a custom clock

    returns

    a new register map with the updated value

  34. def setValue(key: K, value: V): ReplicatedRegisterMap[K, V]

    Set the current value of the register at the given key, using the default clock.

    Set the current value of the register at the given key, using the default clock.

    key

    the key for the register

    value

    the new value of the register

    returns

    a new register map with the updated value

  35. def size: Int

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

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

    returns

    the number of key-register mappings in this register map

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

Inherited from ReplicatedData

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd fromReplicatedRegisterMap[K, V] to any2stringadd[ReplicatedRegisterMap[K, V]]

Inherited by implicit conversion StringFormat fromReplicatedRegisterMap[K, V] to StringFormat[ReplicatedRegisterMap[K, V]]

Inherited by implicit conversion Ensuring fromReplicatedRegisterMap[K, V] to Ensuring[ReplicatedRegisterMap[K, V]]

Inherited by implicit conversion ArrowAssoc fromReplicatedRegisterMap[K, V] to ArrowAssoc[ReplicatedRegisterMap[K, V]]

Ungrouped