Package com.groiss.util
Class ThreadUtil
java.lang.Object
com.groiss.util.ThreadUtil
Utility methods for threads.
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
sleepSilently
(long millis) CallsThread.sleep(long)
.
-
Method Details
-
sleepSilently
public static void sleepSilently(long millis) CallsThread.sleep(long)
.Catches and ignores InterrupedException. Does not set interrupted state on the thread. The actual sleep time may be shorter than the specified interval.
- Parameters:
millis
- the length of time to sleep in milliseconds
-