public class SleepUtil
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
SleepUtil.Interruptor |
| Modifier and Type | Method and Description |
|---|---|
static void |
sleep(java.time.Duration timeout)
Sleep for a maximum of given amount of milliseconds.
|
static void |
sleepInterruptibly(java.time.Duration duration,
SleepUtil.Interruptor interruptor) |
public static void sleep(java.time.Duration timeout)
timeout - the millispublic static void sleepInterruptibly(java.time.Duration duration,
SleepUtil.Interruptor interruptor)
throws java.lang.InterruptedException
java.lang.InterruptedExceptionCopyright © 2020–2022 Axual B.V.. All rights reserved.