WallClock

kofre.time.WallClock
See theWallClock companion object
case class WallClock(timestamp: Long, replicaID: Uid, nanoTime: Long)

WallClock 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 WallClock.now 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

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product