Class SleepUtils

java.lang.Object
com.kingsrook.qqq.backend.core.utils.SleepUtils

public class SleepUtils extends Object
Utility methods to help with sleeping!
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    sleep(long duration, TimeUnit timeUnit)
    Sleep for as close as we can to the specified amount of time (ignoring InterruptedException - continuing to sleep more).
    static void
    sleep(Duration sleepDuration)
    overload for sleep that takes duration object

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SleepUtils

      public SleepUtils()
  • Method Details

    • sleep

      public static void sleep(long duration, TimeUnit timeUnit)
      Sleep for as close as we can to the specified amount of time (ignoring InterruptedException - continuing to sleep more).
    • sleep

      public static void sleep(Duration sleepDuration)
      overload for sleep that takes duration object