Class Threads
- java.lang.Object
-
- com.github.mizool.core.concurrent.Threads
-
public final class Threads extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
rethrowInterrupt(InterruptedException e)
Wraps the givenInterruptedException
in anUncheckedInterruptedException
and re-interrupts the thread.static void
sleep(long milliSeconds)
-
-
-
Method Detail
-
sleep
public static void sleep(long milliSeconds)
- Throws:
UncheckedInterruptedException
- If the thread was interrupted.
-
rethrowInterrupt
public static void rethrowInterrupt(InterruptedException e)
Wraps the givenInterruptedException
in anUncheckedInterruptedException
and re-interrupts the thread.- Throws:
UncheckedInterruptedException
- Wrapping the givenInterruptedException
.
-
-