Package io.atomix.utils.time
Class Epoch
- java.lang.Object
-
- io.atomix.utils.time.LogicalTimestamp
-
- io.atomix.utils.time.Epoch
-
- All Implemented Interfaces:
Timestamp,Comparable<Timestamp>
public class Epoch extends LogicalTimestamp
Epoch.An epoch is a specific type of
LogicalTimestampthat represents a long term section of logical time.
-
-
Constructor Summary
Constructors Constructor Description Epoch(long value)Creates a new epoch timestamp.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Epochof(long value)Returns a new logical timestamp for the given logical time.-
Methods inherited from class io.atomix.utils.time.LogicalTimestamp
asVersion, compareTo, equals, hashCode, toString, value
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.atomix.utils.time.Timestamp
isNewerThan, isOlderThan
-
-
-
-
Method Detail
-
of
public static Epoch of(long value)
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
-
-