final case class LwwTime(timestamp: Long, originReplica: ReplicaId) extends Product with Serializable
Ordering
- Alphabetic
- By Inheritance
Inherited
- LwwTime
- Serializable
- Product
- Equals
- AnyRef
- Any
Implicitly
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
Visibility
- Public
- Protected
Value Members
- def increase(t: Long, replicaId: ReplicaId): LwwTime
Create a new
LwwTime
that has atimestamp
that ismax
of the given timestamp and previous timestamp + 1, i.e.Create a new
LwwTime
that has atimestamp
that ismax
of the given timestamp and previous timestamp + 1, i.e. monotonically increasing. - def isAfter(other: LwwTime): Boolean
Compare this
LwwTime
with theother
.Compare this
LwwTime
with theother
. Greatest timestamp wins. If both timestamps are equal thedc
identifiers are compared and the one sorted first in alphanumeric order wins. - val originReplica: ReplicaId
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- val timestamp: Long
Utility class for comparing timestamp replica identifier when implementing last-writer wins.