Class VectorClock$

  • All Implemented Interfaces:
    java.io.Serializable

    public class VectorClock$
    extends java.lang.Object
    implements java.io.Serializable
    VectorClock module with helper classes and methods.

    Based on code from the 'vlock' VectorClock library by Coda Hale.

    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static VectorClock$ MODULE$
      Static reference to the singleton instance of this Scala object.
    • Constructor Summary

      Constructors 
      Constructor Description
      VectorClock$()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      scala.collection.immutable.TreeMap<java.lang.String,​java.lang.Object> $lessinit$greater$default$1()
      Representation of a Vector-based clock (counting clock), inspired by Lamport logical clocks.
      VectorClock apply​(scala.collection.immutable.TreeMap<java.lang.String,​java.lang.Object> versions)  
      scala.collection.immutable.TreeMap<java.lang.String,​java.lang.Object> apply$default$1()  
      scala.Option<scala.collection.immutable.TreeMap<java.lang.String,​java.lang.Object>> unapply​(VectorClock x$0)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • MODULE$

        public static final VectorClock$ MODULE$
        Static reference to the singleton instance of this Scala object.
    • Constructor Detail

      • VectorClock$

        public VectorClock$()
    • Method Detail

      • $lessinit$greater$default$1

        public scala.collection.immutable.TreeMap<java.lang.String,​java.lang.Object> $lessinit$greater$default$1()
        Representation of a Vector-based clock (counting clock), inspired by Lamport logical clocks.
        
         Reference:
            1) Leslie Lamport (1978). "Time, clocks, and the ordering of events in a distributed system". Communications of the ACM 21 (7): 558-565.
            2) Friedemann Mattern (1988). "Virtual Time and Global States of Distributed Systems". Workshop on Parallel and Distributed Algorithms: pp. 215-226
         

        Based on code from the 'vlock' VectorClock library by Coda Hale.

      • apply

        public VectorClock apply​(scala.collection.immutable.TreeMap<java.lang.String,​java.lang.Object> versions)
      • apply$default$1

        public scala.collection.immutable.TreeMap<java.lang.String,​java.lang.Object> apply$default$1()
      • unapply

        public scala.Option<scala.collection.immutable.TreeMap<java.lang.String,​java.lang.Object>> unapply​(VectorClock x$0)