public class SystemTime extends Object implements org.apache.kafka.common.utils.Time
| Modifier and Type | Method and Description |
|---|---|
static SystemTime |
getSystemTime() |
long |
milliseconds() |
long |
nanoseconds() |
void |
sleep(long ms) |
void |
waitObject(Object obj,
Supplier<Boolean> condition,
long deadlineMs) |
public static SystemTime getSystemTime()
public long milliseconds()
milliseconds in interface org.apache.kafka.common.utils.Timepublic long nanoseconds()
nanoseconds in interface org.apache.kafka.common.utils.Timepublic void sleep(long ms)
sleep in interface org.apache.kafka.common.utils.Timepublic void waitObject(Object obj, Supplier<Boolean> condition, long deadlineMs) throws InterruptedException
waitObject in interface org.apache.kafka.common.utils.TimeInterruptedExceptionCopyright © 2016–2025. All rights reserved.