Class UtilWaitThread

  • public class UtilWaitThread
    extends Object
    • Constructor Detail

      • UtilWaitThread

        public UtilWaitThread()
    • Method Detail

      • sleep

        public static void sleep​(long millis)
      • sleepUninterruptibly

        public static void sleepUninterruptibly​(long sleepFor,
                                                TimeUnit unit)
        Copied from Guava release 23. The Uniterruptibles class was annotated as Beta by Google, therefore unstable to use. The following javadoc was copied from Utilities for treating interruptible operations as uninterruptible. In all cases, if a thread is interrupted during such a call, the call continues to block until the result is available or the timeout elapses, and only then re-interrupts the thread.