public class Uninterruptably
extends java.lang.Object
| Constructor and Description |
|---|
Uninterruptably() |
| Modifier and Type | Method and Description |
|---|---|
static void |
join(java.lang.Thread t)
Join with a thread, retrying the join if we are interrupted.
|
static void |
sleep(java.time.Duration duration)
A helper for
sleep(long) |
static void |
sleep(long millis)
Sleep for a given amount of time, not allowing for interrupts to shorten the time.
|
public static void sleep(long millis)
millis - The amount of time to sleep for.public static void sleep(java.time.Duration duration)
sleep(long)public static void join(java.lang.Thread t)
t - The thread to join.