Class HybridLogicalTime


  • public class HybridLogicalTime
    extends java.lang.Object
    Time provided by a Hybrid Logical Clock described in this paper.
    • Constructor Summary

      Constructors 
      Constructor Description
      HybridLogicalTime​(long logicalTime, long logicalCounter)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long logicalCounter()
      Returns the logical counter component of a HLT.
      long logicalTime()
      Returns the logical time component of a HLT.
      long time()
      Returns the real system time represented by this HLT.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • HybridLogicalTime

        public HybridLogicalTime​(long logicalTime,
                                 long logicalCounter)
    • Method Detail

      • logicalTime

        public long logicalTime()
        Returns the logical time component of a HLT.
        Returns:
        logical time
      • logicalCounter

        public long logicalCounter()
        Returns the logical counter component of a HLT.
        Returns:
        logical counter
      • time

        public long time()
        Returns the real system time represented by this HLT.
        Returns:
        real system time
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object