object LWWRegister extends Serializable
- Source
- LWWRegister.scala
- Alphabetic
- By Inheritance
- LWWRegister
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
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[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate() @throws( ... )
-
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: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
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
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
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( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
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.
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
- Deprecated
(Since version ) see corresponding Javadoc for more information.