public class Epoch extends LogicalTimestamp
An epoch is a specific type of LogicalTimestamp that represents a long term section of logical time.
| Constructor and Description |
|---|
Epoch(long value)
Creates a new epoch timestamp.
|
| Modifier and Type | Method and Description |
|---|---|
static Epoch |
of(long value)
Returns a new logical timestamp for the given logical time.
|
asVersion, compareTo, equals, hashCode, toString, valueisNewerThan, isOlderThanpublic Epoch(long value)
value - the epoch valuepublic static Epoch of(long value)
value - the logical time for which to create a new logical timestampCopyright © 2013–2019. All rights reserved.