LWWRegister

org.apache.pekko.cluster.ddata.LWWRegister
See theLWWRegister companion class
object LWWRegister

Attributes

Companion
class
Source
LWWRegister.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

trait Clock[A]

Attributes

Source
LWWRegister.scala
Supertypes
class Object
trait Matchable
class Any

Value members

Concrete methods

def apply[A](node: SelfUniqueAddress, initialValue: A): LWWRegister[A]

Attributes

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

Attributes

Source
LWWRegister.scala
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.

Attributes

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

Java API

Java API

Attributes

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

Java API

Java API

Attributes

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.

Attributes

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.

Attributes

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

Extract the LWWRegister#value.

Extract the LWWRegister#value.

Attributes

Source
LWWRegister.scala

Deprecated methods

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

Attributes

Deprecated
[Since version Akka 2.5.20]
Source
LWWRegister.scala
def create[A](node: Cluster, initialValue: A): LWWRegister[A]

Java API

Java API

Attributes

Deprecated
[Since version Akka 2.5.20]
Source
LWWRegister.scala
def create[A](node: Cluster, initialValue: A, clock: Clock[A]): LWWRegister[A]

Java API

Java API

Attributes

Deprecated
[Since version Akka 2.5.20]
Source
LWWRegister.scala