Package io.debezium.util
Interface Clock
public interface Clock
An abstraction for a clock.
- Author:
- Randall Hauch
-
Field Details
-
SYSTEM
-
-
Method Details
-
system
- Returns:
- the system clock; never null
-
currentTime
-
currentTimeInNanos
default long currentTimeInNanos()Get the current time in nanoseconds.- Returns:
- the current time in nanoseconds.
-
currentTimeInMicros
default long currentTimeInMicros()Get the current time in microseconds.- Returns:
- the current time in microseconds.
-
currentTimeAsInstant
Get the current time as an instant- Returns:
- the current time as an instant.
-
currentTimeInMillis
long currentTimeInMillis()Get the current time in milliseconds.- Returns:
- the current time in milliseconds.
-