Package org.komamitsu.fluency
Class EventTime
java.lang.Object
org.komamitsu.fluency.EventTime
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic EventTimefromEpoch(long epochSeconds) Constructs anEventTime.static EventTimefromEpoch(long epochSeconds, long nanoseconds) Constructs anEventTime.static EventTimefromEpochMilli(long epochMillisecond) Constructs anEventTime.longlongDeprecated.longinthashCode()toString()
-
Constructor Details
-
EventTime
public EventTime(long seconds, long nanoseconds) Constructs anEventTime.- 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
Constructs anEventTime.- Parameters:
epochSeconds- the epoch seconds. This should be a 32-bit value.
-
fromEpoch
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
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.As of release 1.9, replaced bygetNanoseconds() -
equals
-
hashCode
public int hashCode() -
toString
-
getNanoseconds()