object LWWRegister extends Serializable
- Source
- LWWRegister.scala
- Alphabetic
- By Inheritance
- LWWRegister
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
- def apply[A](node: SelfUniqueAddress, initialValue: A, clock: Clock[A]): LWWRegister[A]
- def apply[A](node: SelfUniqueAddress, initialValue: A): LWWRegister[A]
-
def
create[A](node: SelfUniqueAddress, initialValue: A): LWWRegister[A]
Java API
-
def
create[A](node: SelfUniqueAddress, initialValue: A, clock: Clock[A]): LWWRegister[A]
Java API
-
def
create[A](initialValue: A)(implicit node: SelfUniqueAddress, clock: Clock[A] = defaultClock[A]): LWWRegister[A]
Scala API Creates a
LWWRegister
with implicits, given deprecatedapply
functions using Cluster constrain overloading. -
def
defaultClock[A]: Clock[A]
The default LWWRegister.Clock is using max value of
System.currentTimeMillis()
andcurrentTimestamp + 1
. -
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()
andcurrentTimestamp + 1
, i.e. it is counting backwards. -
def
unapply[A](c: LWWRegister[A]): Option[A]
Extract the LWWRegister#value.
Deprecated Value Members
-
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 aSelfUniqueAddress
parameter instead.
-
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 aSelfUniqueAddress
parameter instead.
-
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 aSelfUniqueAddress
parameter instead.