@ThreadSafe public final class SleepUtils extends Object
Modifier and Type | Method and Description |
---|---|
static void |
sleepMs(org.slf4j.Logger logger,
long timeMs)
Sleeps for the given number of milliseconds, reporting interruptions using the given logger.
|
static void |
sleepMs(long timeMs)
Sleeps for the given number of milliseconds.
|
public static void sleepMs(long timeMs)
timeMs
- sleep duration in millisecondspublic static void sleepMs(org.slf4j.Logger logger, long timeMs)
logger
- logger for reporting interruptions; no reporting is done if the logger is nulltimeMs
- sleep duration in millisecondsCopyright © 2023. All Rights Reserved.