Package io.atomix.utils.time
Class LogicalTimestamp
java.lang.Object
io.atomix.utils.time.LogicalTimestamp
- All Implemented Interfaces:
Timestamp,Comparable<Timestamp>
Timestamp based on logical sequence value.
LogicalTimestamps are ordered by their sequence values.
-
Constructor Details
-
LogicalTimestamp
public LogicalTimestamp(long value)
-
-
Method Details
-
of
Returns a new logical timestamp for the given logical time.- Parameters:
value- the logical time for which to create a new logical timestamp- Returns:
- the logical timestamp
-
value
public long value()Returns the sequence value.- Returns:
- sequence value
-
compareTo
- Specified by:
compareToin interfaceComparable<Timestamp>
-
hashCode
public int hashCode() -
equals
-
toString
-