Package com.linkedin.venice.utils
Class MockCircularTime
java.lang.Object
com.linkedin.venice.utils.MockCircularTime
- All Implemented Interfaces:
Time
A mock time that takes a list of synthetic timestamps in MS and return them one by one in a circular manner.
-
Field Summary
Fields inherited from interface com.linkedin.venice.utils.Time
HOURS_PER_DAY, MINUTES_PER_HOUR, MS_PER_DAY, MS_PER_HOUR, MS_PER_MINUTE, MS_PER_SECOND, NS_PER_MS, NS_PER_SECOND, NS_PER_US, SECONDS_PER_DAY, SECONDS_PER_HOUR, SECONDS_PER_MINUTE, US_PER_MS, US_PER_SECOND
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
MockCircularTime
-
-
Method Details
-
getCurrentDate
-
getMilliseconds
public long getMilliseconds()- Specified by:
getMilliseconds
in interfaceTime
-
getNanoseconds
public long getNanoseconds()- Specified by:
getNanoseconds
in interfaceTime
-
getSeconds
public int getSeconds() -
sleep
- Specified by:
sleep
in interfaceTime
- Throws:
InterruptedException
-