Package org.onosproject.core
Interface HybridLogicalClockService
-
public interface HybridLogicalClockService
The hybrid logical time keeper service.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method 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 aWallClockTimestamp
.
-
-
-
Method Detail
-
timeNow
HybridLogicalTime timeNow()
Returns the current hybrid logical time.- Returns:
- current hybrid logical time
-
recordEventTime
void recordEventTime(HybridLogicalTime time)
Records a (receive) event and accordingly makes adjustments to the hybrid logical time.- Parameters:
time
- received event time
-
now
default long now()
Returns the current time derived from the hybrid logical time.- Returns:
- current system time
-
wallClockTimestamp
default WallClockTimestamp wallClockTimestamp()
Returns the current time as aWallClockTimestamp
.- Returns:
- wall clock timestamp
-
-