Class EventTime


  • public class EventTime
    extends java.lang.Object
    • Constructor Detail

      • EventTime

        public EventTime​(long seconds,
                         long nanoseconds)
        Constructs an EventTime.
        Parameters:
        seconds - the epoch seconds. This should be a 32-bit value.
        nanoseconds - the nanoseconds. This should be a 32-bit value.
    • Method Detail

      • fromEpoch

        public static EventTime fromEpoch​(long epochSeconds)
        Constructs an EventTime.
        Parameters:
        epochSeconds - the epoch seconds. This should be a 32-bit value.
      • fromEpoch

        public static EventTime fromEpoch​(long epochSeconds,
                                          long nanoseconds)
        Constructs an EventTime.
        Parameters:
        epochSeconds - the epoch seconds. This should be a 32-bit value.
        nanoseconds - the nanoseconds. This should be a 32-bit value.
      • fromEpochMilli

        public static EventTime fromEpochMilli​(long epochMillisecond)
        Constructs an EventTime.
        Parameters:
        epochMillisecond - the epoch milli seconds. This should be a 32-bit value.
      • getSeconds

        public long getSeconds()
      • getNanoseconds

        public long getNanoseconds()
      • getNanoSeconds

        @Deprecated
        public long getNanoSeconds()
        Deprecated.
        As of release 1.9, replaced by getNanoseconds()
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

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