public interface HybridLogicalClockService
Modifier and Type | Method and Description |
---|---|
default long |
now()
Returns the current time derived from the hybrid logical time.
|
void |
recordEventTime(HybridLogicalTime time)
Records a (receive) event and accordingly makes adjustments to the hybrid logical time.
|
HybridLogicalTime |
timeNow()
Returns the current hybrid logical time.
|
default WallClockTimestamp |
wallClockTimestamp()
Returns the current time as a
WallClockTimestamp . |
HybridLogicalTime timeNow()
void recordEventTime(HybridLogicalTime time)
time
- received event timedefault long now()
default WallClockTimestamp wallClockTimestamp()
WallClockTimestamp
.