Package org.onosproject.core
Interface HybridLogicalClockService
- 
public interface HybridLogicalClockServiceThe hybrid logical time keeper service. 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default longnow()Returns the current time derived from the hybrid logical time.voidrecordEventTime(HybridLogicalTime time)Records a (receive) event and accordingly makes adjustments to the hybrid logical time.HybridLogicalTimetimeNow()Returns the current hybrid logical time.default WallClockTimestampwallClockTimestamp()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
 
 
 - 
 
 -