@InterfaceStability.Evolving public class ThreadUtil extends Object
Constructor and Description |
---|
ThreadUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
sleepAtLeastIgnoreInterrupts(long millis)
Cause the current thread to sleep as close as possible to the provided
number of milliseconds.
|
public ThreadUtil()
public static void sleepAtLeastIgnoreInterrupts(long millis)
InterruptedException
encountered.millis
- the number of milliseconds for the current thread to sleepCopyright © 2017 Apache Software Foundation. All Rights Reserved.