Package org.apache.pekko.cluster.ddata
Class LWWRegister$
java.lang.Object
org.apache.pekko.cluster.ddata.LWWRegister$
- All Implemented Interfaces:
Serializable
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final LWWRegister$Static reference to the singleton instance of this Scala object. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<A> LWWRegister<A>apply(SelfUniqueAddress node, A initialValue) <A> LWWRegister<A>apply(SelfUniqueAddress node, A initialValue, LWWRegister.Clock<A> clock) <A> LWWRegister<A>create(A initialValue, SelfUniqueAddress node, LWWRegister.Clock<A> clock) Scala API Creates aLWWRegisterwith implicits, given deprecatedapplyfunctions using Cluster constrain overloading.<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.Clock<A>create$default$3(A initialValue) <A> LWWRegister.Clock<A>The defaultLWWRegister.Clockis using max value ofSystem.currentTimeMillis()andcurrentTimestamp + 1.<A> LWWRegister.Clock<A>ThisLWWRegister.Clockcan be used for first-write-wins semantics.<A> scala.Option<A>unapply(LWWRegister<A> c) Extract theLWWRegister.value().
-
Field Details
-
MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Constructor Details
-
LWWRegister$
public LWWRegister$()
-
-
Method Details
-
defaultClock
The defaultLWWRegister.Clockis using max value ofSystem.currentTimeMillis()andcurrentTimestamp + 1. -
reverseClock
ThisLWWRegister.Clockcan be used for first-write-wins semantics. It is using min value of-System.currentTimeMillis()andcurrentTimestamp + 1, i.e. it is counting backwards. -
apply
-
apply
-
create
public <A> LWWRegister<A> create(A initialValue, SelfUniqueAddress node, LWWRegister.Clock<A> clock) Scala API Creates aLWWRegisterwith implicits, given deprecatedapplyfunctions using Cluster constrain overloading. -
create
public <A> LWWRegister<A> create(SelfUniqueAddress node, A initialValue, LWWRegister.Clock<A> clock) Java API -
create
Java API -
create$default$3
-
unapply
Extract theLWWRegister.value().
-