Package io.unitycatalog.client.internal
Class Clock.SystemClock
java.lang.Object
io.unitycatalog.client.internal.Clock.SystemClock
- All Implemented Interfaces:
Clock
- Enclosing interface:
Clock
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.unitycatalog.client.internal.Clock
Clock.ManualClock, Clock.SystemClock -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
SystemClock
public SystemClock()
-
-
Method Details
-
now
-
sleep
Description copied from interface:ClockSleeps for the given duration.For system clock, this performs an actual sleep by calling
Thread.sleep(long). For manual clock, this advances the clock time by the given duration without sleeping.- Specified by:
sleepin interfaceClock- Parameters:
duration- the duration to sleep- Throws:
InterruptedException- if the sleep is interrupted (only for system clock)
-