Class WallClockTimestamp

  • All Implemented Interfaces:
    java.lang.Comparable<Timestamp>, Timestamp

    public class WallClockTimestamp
    extends java.lang.Object
    implements Timestamp
    A Timestamp that derives its value from the prevailing wallclock time on the controller where it is generated.
    • Constructor Detail

      • WallClockTimestamp

        public WallClockTimestamp()
      • WallClockTimestamp

        public WallClockTimestamp​(long timestamp)
    • Method Detail

      • compareTo

        public int compareTo​(Timestamp o)
        Specified by:
        compareTo in interface java.lang.Comparable<Timestamp>
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface Timestamp
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Specified by:
        equals in interface Timestamp
        Overrides:
        equals in class java.lang.Object
      • toString

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

        public long unixTimestamp()
        Returns the unixTimestamp.
        Returns:
        unix timestamp