TimedVal

kofre.datatypes.TimedVal
See theTimedVal companion object
case class TimedVal[A](value: A, replicaID: String, nanoTime: Long, timestamp: Long)

TimedVal is a case class for values that allows chronological ordering of values based on their time of creation. In the case that two values from two different replicas have the exact same timestamp, the lexical ordering of the ids of the two replicas is used to decide the ordering of the values. If two values from the same replica have the same timestamp, then the higher-resolution local nanoTime is used to decide ordering.

Instead of the default constructor, it is recommended that you use the apply method of the companion object which automatically fills in the timestamp and nanoTime using System.currentTimeMillis() and System.nanoTime() respectively.

Attributes

Companion:
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

def laterThan(other: TimedVal[A]): Boolean

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product