LWWRegister

Companion:
class
Source:
LWWRegister.scala
class Object
trait Matchable
class Any

Type members

Classlikes

trait Clock[A]

Value members

Concrete methods

def apply[A](node: SelfUniqueAddress, initialValue: A): LWWRegister[A]
def apply[A](node: SelfUniqueAddress, initialValue: A, clock: Clock[A]): LWWRegister[A]
def create[A](initialValue: A)(implicit node: SelfUniqueAddress, clock: Clock[A]): LWWRegister[A]

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

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

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

Java API

Java API

Source:
LWWRegister.scala
def create[A](node: SelfUniqueAddress, initialValue: A): LWWRegister[A]

Java API

Java API

Source:
LWWRegister.scala
def defaultClock[A]: Clock[A]

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

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

Source:
LWWRegister.scala
def reverseClock[A]: Clock[A]

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.

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.

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

Extract the LWWRegister#value.

Deprecated methods

@deprecated("Use `apply` that takes a `SelfUniqueAddress` parameter instead.", since = "2.5.20")
def apply[A](initialValue: A)(implicit node: Cluster, clock: Clock[A]): LWWRegister[A]
Deprecated
[Since version 2.5.20]
Source:
LWWRegister.scala
@deprecated("Use `create` that takes a `SelfUniqueAddress` parameter instead.", since = "2.5.20")
def create[A](node: Cluster, initialValue: A): LWWRegister[A]

Java API

Java API

Deprecated
[Since version 2.5.20]
Source:
LWWRegister.scala
@deprecated("Use `create` that takes a `SelfUniqueAddress` parameter instead.", since = "2.5.20")
def create[A](node: Cluster, initialValue: A, clock: Clock[A]): LWWRegister[A]

Java API

Java API

Deprecated
[Since version 2.5.20]
Source:
LWWRegister.scala