Package akka.cluster.ddata
Class LWWRegister$
- java.lang.Object
-
- akka.cluster.ddata.LWWRegister$
-
- All Implemented Interfaces:
java.io.Serializable
public class LWWRegister$ extends java.lang.Object implements java.io.Serializable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static LWWRegister$
MODULE$
Static reference to the singleton instance of this Scala object.
-
Constructor Summary
Constructors Constructor Description LWWRegister$()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description <A> LWWRegister<A>
apply(SelfUniqueAddress node, A initialValue)
<A> LWWRegister<A>
apply(SelfUniqueAddress node, A initialValue, LWWRegister.Clock<A> clock)
<A> LWWRegister<A>
apply(A initialValue, Cluster node, LWWRegister.Clock<A> clock)
Deprecated.Use `apply` that takes a `SelfUniqueAddress` parameter instead.<A> LWWRegister.Clock<A>
apply$default$3(A initialValue)
<A> LWWRegister<A>
create(Cluster node, A initialValue)
Deprecated.Use `create` that takes a `SelfUniqueAddress` parameter instead.<A> LWWRegister<A>
create(Cluster node, A initialValue, LWWRegister.Clock<A> clock)
Deprecated.Use `create` that takes a `SelfUniqueAddress` parameter instead.<A> LWWRegister<A>
create(SelfUniqueAddress node, A initialValue)
Java API<A> LWWRegister<A>
create(SelfUniqueAddress node, A initialValue, LWWRegister.Clock<A> clock)
Java API<A> LWWRegister<A>
create(A initialValue, SelfUniqueAddress node, LWWRegister.Clock<A> clock)
Scala API Creates aLWWRegister
with implicits, given deprecatedapply
functions using Cluster constrain overloading.<A> LWWRegister.Clock<A>
create$default$3(A initialValue)
<A> LWWRegister.Clock<A>
defaultClock()
The defaultLWWRegister.Clock
is using max value ofSystem.currentTimeMillis()
andcurrentTimestamp + 1
.<A> LWWRegister.Clock<A>
reverseClock()
ThisLWWRegister.Clock
can be used for first-write-wins semantics.<A> scala.Option<A>
unapply(LWWRegister<A> c)
Extract theLWWRegister.value()
.
-
-
-
Field Detail
-
MODULE$
public static final LWWRegister$ MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Method Detail
-
defaultClock
public <A> LWWRegister.Clock<A> defaultClock()
The defaultLWWRegister.Clock
is using max value ofSystem.currentTimeMillis()
andcurrentTimestamp + 1
.
-
reverseClock
public <A> LWWRegister.Clock<A> reverseClock()
ThisLWWRegister.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.
-
apply
public <A> LWWRegister<A> apply(SelfUniqueAddress node, A initialValue)
-
apply
public <A> LWWRegister<A> apply(SelfUniqueAddress node, A initialValue, LWWRegister.Clock<A> clock)
-
apply
public <A> LWWRegister<A> apply(A initialValue, Cluster node, LWWRegister.Clock<A> clock)
Deprecated.Use `apply` that takes a `SelfUniqueAddress` parameter instead. Since 2.5.20.
-
apply$default$3
public <A> LWWRegister.Clock<A> apply$default$3(A initialValue)
-
create
public <A> LWWRegister<A> create(A initialValue, SelfUniqueAddress node, LWWRegister.Clock<A> clock)
Scala API Creates aLWWRegister
with implicits, given deprecatedapply
functions using Cluster constrain overloading.
-
create
public <A> LWWRegister<A> create(Cluster node, A initialValue)
Deprecated.Use `create` that takes a `SelfUniqueAddress` parameter instead. Since 2.5.20.Java API
-
create
public <A> LWWRegister<A> create(Cluster node, A initialValue, LWWRegister.Clock<A> clock)
Deprecated.Use `create` that takes a `SelfUniqueAddress` parameter instead. Since 2.5.20.Java API
-
create
public <A> LWWRegister<A> create(SelfUniqueAddress node, A initialValue, LWWRegister.Clock<A> clock)
Java API
-
create
public <A> LWWRegister<A> create(SelfUniqueAddress node, A initialValue)
Java API
-
create$default$3
public <A> LWWRegister.Clock<A> create$default$3(A initialValue)
-
unapply
public <A> scala.Option<A> unapply(LWWRegister<A> c)
Extract theLWWRegister.value()
.
-
-