Class ThreadUtil

java.lang.Object
com.groiss.util.ThreadUtil

public class ThreadUtil extends Object
Utility methods for threads.
  • Method Details

    • sleepSilently

      public static void sleepSilently(long millis)
      Calls Thread.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