object LWWRegister extends Serializable
- Source
- LWWRegister.scala
- Alphabetic
- By Inheritance
- LWWRegister
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def apply[A](node: SelfUniqueAddress, initialValue: A, clock: Clock[A]): LWWRegister[A]
- def apply[A](node: SelfUniqueAddress, initialValue: A): LWWRegister[A]
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
- 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
. - final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- 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. - final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def unapply[A](c: LWWRegister[A]): Option[A]
Extract the LWWRegister#value.
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def apply[A](initialValue: A)(implicit node: Cluster, clock: Clock[A] = defaultClock[A]): LWWRegister[A]
- Annotations
- @deprecated
- Deprecated
(Since version Akka 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 Akka 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 Akka 2.5.20) Use
create
that takes aSelfUniqueAddress
parameter instead.
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)