Class WallClockTimestamp

  • All Implemented Interfaces:
    Timestamp, Comparable<Timestamp>

    public class WallClockTimestamp
    extends 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

      • from

        public static WallClockTimestamp from​(long unixTimestamp)
        Returns a new wall clock timestamp for the given unix timestamp.
        Parameters:
        unixTimestamp - the unix timestamp for which to create a new wall clock timestamp
        Returns:
        the wall clock timestamp
      • unixTimestamp

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