object LWWRegister extends Serializable

Source
LWWRegister.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. LWWRegister
  2. Serializable
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. trait Clock[A] extends AnyRef

Value Members

  1. def apply[A](node: SelfUniqueAddress, initialValue: A, clock: Clock[A]): LWWRegister[A]
  2. def apply[A](node: SelfUniqueAddress, initialValue: A): LWWRegister[A]
  3. def create[A](node: SelfUniqueAddress, initialValue: A): LWWRegister[A]

    Java API

  4. def create[A](node: SelfUniqueAddress, initialValue: A, clock: Clock[A]): LWWRegister[A]

    Java API

  5. def create[A](initialValue: A)(implicit node: SelfUniqueAddress, clock: Clock[A] = defaultClock[A]): LWWRegister[A]

    Scala API Creates a LWWRegister with implicits, given deprecated apply functions using Cluster constrain overloading.

  6. def defaultClock[A]: Clock[A]

    The default LWWRegister.Clock is using max value of System.currentTimeMillis() and currentTimestamp + 1.

  7. def reverseClock[A]: Clock[A]

    This LWWRegister.Clock can be used for first-write-wins semantics.

    This LWWRegister.Clock can be used for first-write-wins semantics. It is using min value of -System.currentTimeMillis() and currentTimestamp + 1, i.e. it is counting backwards.

  8. def unapply[A](c: LWWRegister[A]): Option[A]

    Extract the LWWRegister#value.

Deprecated Value Members

  1. def apply[A](initialValue: A)(implicit node: Cluster, clock: Clock[A] = defaultClock[A]): LWWRegister[A]
    Annotations
    @deprecated
    Deprecated

    (Since version 2.5.20) Use apply that takes a SelfUniqueAddress parameter instead.

  2. def create[A](node: Cluster, initialValue: A, clock: Clock[A]): LWWRegister[A]

    Java API

    Java API

    Annotations
    @deprecated
    Deprecated

    (Since version 2.5.20) Use create that takes a SelfUniqueAddress parameter instead.

  3. def create[A](node: Cluster, initialValue: A): LWWRegister[A]

    Java API

    Java API

    Annotations
    @deprecated
    Deprecated

    (Since version 2.5.20) Use create that takes a SelfUniqueAddress parameter instead.