public final class LwwTime
extends java.lang.Object
implements scala.Product, scala.Serializable
| Constructor and Description |
|---|
LwwTime(long timestamp,
java.lang.String originDc) |
| Modifier and Type | Method and Description |
|---|---|
static LwwTime |
apply(long timestamp,
java.lang.String originDc) |
boolean |
canEqual(java.lang.Object x$1) |
LwwTime |
copy(long timestamp,
java.lang.String originDc) |
long |
copy$default$1() |
java.lang.String |
copy$default$2() |
boolean |
equals(java.lang.Object x$1) |
int |
hashCode() |
LwwTime |
increase(long t,
java.lang.String dc)
Create a new
LwwTime that has a timestamp that is
max of the given timestamp and previous timestamp + 1,
i.e. |
boolean |
isAfter(LwwTime other)
Compare this
LwwTime with the other. |
java.lang.String |
originDc() |
int |
productArity() |
java.lang.Object |
productElement(int x$1) |
scala.collection.Iterator<java.lang.Object> |
productIterator() |
java.lang.String |
productPrefix() |
long |
timestamp() |
java.lang.String |
toString() |
static scala.Option<scala.Tuple2<java.lang.Object,java.lang.String>> |
unapply(LwwTime x$0) |
public static LwwTime apply(long timestamp, java.lang.String originDc)
public static scala.Option<scala.Tuple2<java.lang.Object,java.lang.String>> unapply(LwwTime x$0)
public long timestamp()
public java.lang.String originDc()
public LwwTime increase(long t, java.lang.String dc)
LwwTime that has a timestamp that is
max of the given timestamp and previous timestamp + 1,
i.e. monotonically increasing.t - (undocumented)dc - (undocumented)public boolean isAfter(LwwTime other)
LwwTime with the other.
Greatest timestamp wins. If both timestamps are
equal the dc identifiers are compared and the
one sorted first in alphanumeric order wins.other - (undocumented)public LwwTime copy(long timestamp, java.lang.String originDc)
public long copy$default$1()
public java.lang.String copy$default$2()
public java.lang.String productPrefix()
productPrefix in interface scala.Productpublic int productArity()
productArity in interface scala.Productpublic java.lang.Object productElement(int x$1)
productElement in interface scala.Productpublic scala.collection.Iterator<java.lang.Object> productIterator()
productIterator in interface scala.Productpublic boolean canEqual(java.lang.Object x$1)
canEqual in interface scala.Equalspublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object x$1)
equals in interface scala.Equalsequals in class java.lang.Object