Class EventTime

java.lang.Object
org.komamitsu.fluency.EventTime

public class EventTime extends Object
  • Constructor Details

    • 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 Details

    • 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(Object o)
      Overrides:
      equals in class Object
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object