public class LWWRegister$
extends java.lang.Object
implements scala.Serializable
Modifier and Type | Field and Description |
---|---|
static LWWRegister$ |
MODULE$
Static reference to the singleton instance of this Scala object.
|
Constructor and Description |
---|
LWWRegister$() |
Modifier and Type | Method and Description |
---|---|
<A> LWWRegister<A> |
apply(A initialValue,
Cluster node,
LWWRegister.Clock<A> clock) |
<A> LWWRegister<A> |
apply(UniqueAddress node,
A initialValue,
LWWRegister.Clock<A> clock)
INTERNAL API
|
<A> LWWRegister<A> |
create(Cluster node,
A initialValue)
Java API
|
<A> LWWRegister<A> |
create(Cluster node,
A initialValue,
LWWRegister.Clock<A> clock)
Java API
|
<A> LWWRegister.Clock<A> |
defaultClock()
The default
LWWRegister.Clock is using max value of System.currentTimeMillis()
and currentTimestamp + 1 . |
<A> LWWRegister.Clock<A> |
reverseClock()
This
LWWRegister.Clock can be used for first-write-wins semantics. |
<A> scala.Option<A> |
unapply(LWWRegister<A> c)
Extract the
LWWRegister.value() . |
public static final LWWRegister$ MODULE$
public <A> LWWRegister.Clock<A> defaultClock()
LWWRegister.Clock
is using max value of System.currentTimeMillis()
and currentTimestamp + 1
.public <A> LWWRegister.Clock<A> reverseClock()
LWWRegister.Clock
can be used for first-write-wins semantics. It is using min value of
-System.currentTimeMillis()
and currentTimestamp + 1
, i.e. it is counting backwards.public <A> LWWRegister<A> apply(UniqueAddress node, A initialValue, LWWRegister.Clock<A> clock)
node
- (undocumented)initialValue
- (undocumented)clock
- (undocumented)public <A> LWWRegister<A> apply(A initialValue, Cluster node, LWWRegister.Clock<A> clock)
public <A> LWWRegister<A> create(Cluster node, A initialValue)
node
- (undocumented)initialValue
- (undocumented)public <A> LWWRegister<A> create(Cluster node, A initialValue, LWWRegister.Clock<A> clock)
node
- (undocumented)initialValue
- (undocumented)clock
- (undocumented)public <A> scala.Option<A> unapply(LWWRegister<A> c)
LWWRegister.value()
.c
- (undocumented)