public final class Threads extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
rethrowInterrupt(InterruptedException e)
Wraps the given
InterruptedException in an UncheckedInterruptedException and re-interrupts the
thread. |
static void |
sleep(long milliSeconds) |
public static void sleep(long milliSeconds)
UncheckedInterruptedException - If the thread was interrupted.public static void rethrowInterrupt(InterruptedException e)
InterruptedException in an UncheckedInterruptedException and re-interrupts the
thread.UncheckedInterruptedException - Wrapping the given InterruptedException.Copyright © 2021. All rights reserved.