Package org.komamitsu.fluency
Class EventTime
- java.lang.Object
-
- org.komamitsu.fluency.EventTime
-
public class EventTime extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEventTime.Serializer
-
Constructor Summary
Constructors Constructor Description EventTime(long seconds, long nanoseconds)Constructs anEventTime.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanequals(java.lang.Object o)static EventTimefromEpoch(long epochSeconds)Constructs anEventTime.static EventTimefromEpoch(long epochSeconds, long nanoseconds)Constructs anEventTime.static EventTimefromEpochMilli(long epochMillisecond)Constructs anEventTime.longgetNanoseconds()longgetNanoSeconds()Deprecated.As of release 1.9, replaced bygetNanoseconds()longgetSeconds()inthashCode()java.lang.StringtoString()
-
-
-
Method Detail
-
fromEpoch
public static EventTime fromEpoch(long epochSeconds)
Constructs anEventTime.- Parameters:
epochSeconds- the epoch seconds. This should be a 32-bit value.
-
fromEpoch
public static EventTime fromEpoch(long epochSeconds, long nanoseconds)
Constructs anEventTime.- 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 anEventTime.- 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 bygetNanoseconds()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-