Package org.onosproject.store.service
Class WallClockTimestamp
- java.lang.Object
-
- org.onosproject.store.service.WallClockTimestamp
-
- All Implemented Interfaces:
Comparable<Timestamp>
,Timestamp
public class WallClockTimestamp extends Object implements Timestamp
A Timestamp that derives its value from the prevailing wallclock time on the controller where it is generated.
-
-
Constructor Summary
Constructors Constructor Description WallClockTimestamp()
WallClockTimestamp(long timestamp)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(Timestamp o)
boolean
equals(Object obj)
int
hashCode()
String
toString()
long
unixTimestamp()
Returns the unixTimestamp.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.onosproject.store.Timestamp
isNewerThan, isOlderThan
-
-
-
-
Method Detail
-
compareTo
public int compareTo(Timestamp o)
- Specified by:
compareTo
in interfaceComparable<Timestamp>
-
hashCode
public int hashCode()
-
equals
public boolean equals(Object obj)
-
unixTimestamp
public long unixTimestamp()
Returns the unixTimestamp.- Returns:
- unix timestamp
-
-