| Package | Description |
|---|---|
| io.atomix.protocols.gossip | |
| io.atomix.protocols.gossip.map | |
| io.atomix.protocols.gossip.set | |
| io.atomix.protocols.gossip.value | |
| io.atomix.utils.time |
Provides classes and interfaces for representing and operating on both logical and physical representations of time.
|
| Modifier and Type | Method and Description |
|---|---|
Timestamp |
TimestampProvider.get(E entry)
Returns the timestamp for the given entry.
|
| Modifier and Type | Method and Description |
|---|---|
Timestamp |
MapValue.timestamp()
Returns the timestamp of this value.
|
Timestamp |
MapValue.Digest.timestamp() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
MapValue.isNewerThan(Timestamp timestamp)
Tests if this timestamp is newer than the specified timestamp.
|
static MapValue |
MapValue.tombstone(Timestamp timestamp)
Creates a tombstone value with the specified timestamp.
|
| Constructor and Description |
|---|
Digest(Timestamp timestamp,
boolean isTombstone) |
MapValue(byte[] value,
Timestamp timestamp)
Constructor automatically to create the system time of construction.
|
MapValue(byte[] value,
Timestamp timestamp,
long creationTime)
Creates a map value using value, timestamp, and creation time.
|
| Modifier and Type | Method and Description |
|---|---|
Timestamp |
SetElement.timestamp()
Returns the element timestamp.
|
| Modifier and Type | Method and Description |
|---|---|
Timestamp |
Value.timestamp()
Returns the element timestamp.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
Clock<T extends Timestamp>
Clock.
|
| Modifier and Type | Class and Description |
|---|---|
class |
Epoch
Epoch.
|
class |
LogicalTimestamp
Timestamp based on logical sequence value.
|
class |
MultiValuedTimestamp<T extends Comparable<T>,U extends Comparable<U>>
A logical timestamp that derives its value from two input values.
|
class |
VectorTimestamp<T extends Identifier>
Vector clock timestamp.
|
class |
Version
Logical timestamp for versions.
|
class |
WallClockTimestamp
A Timestamp that derives its value from the prevailing
wallclock time on the controller where it is generated.
|
| Modifier and Type | Method and Description |
|---|---|
int |
WallClockTimestamp.compareTo(Timestamp o) |
int |
MultiValuedTimestamp.compareTo(Timestamp o) |
int |
LogicalTimestamp.compareTo(Timestamp o) |
int |
Version.compareTo(Timestamp o) |
int |
VectorTimestamp.compareTo(Timestamp o) |
default boolean |
Timestamp.isNewerThan(Timestamp other)
Tests if this timestamp is newer than the specified timestamp.
|
default boolean |
Timestamp.isOlderThan(Timestamp other)
Tests if this timestamp is older than the specified timestamp.
|
Copyright © 2013–2018. All rights reserved.