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 voidrethrowInterrupt(InterruptedException e)Wraps the givenInterruptedExceptionin anUncheckedInterruptedExceptionand re-interrupts the thread.static voidsleep(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 givenInterruptedExceptionin anUncheckedInterruptedExceptionand re-interrupts the thread.- Throws:
UncheckedInterruptedException- Wrapping the givenInterruptedException.
-
-