Package io.atomix.utils.time
Class WallClockTimestamp
java.lang.Object
io.atomix.utils.time.WallClockTimestamp
- All Implemented Interfaces:
Timestamp,Comparable<Timestamp>
A Timestamp that derives its value from the prevailing wallclock time on the controller where it
is generated.
-
Constructor Details
-
WallClockTimestamp
public WallClockTimestamp() -
WallClockTimestamp
public WallClockTimestamp(long timestamp)
-
-
Method Details
-
from
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
-
compareTo
- Specified by:
compareToin interfaceComparable<Timestamp>
-
hashCode
public int hashCode() -
equals
-
toString
-