Class Sleeper.DefaultSleeper

    • Method Detail

      • getInstance

        public static Sleeper.DefaultSleeper getInstance()
        Gets the singleton instance of this class.
        Returns:
        the singleton
      • sleep

        public void sleep​(long millis)
                   throws InterruptedException
        Description copied from interface: Sleeper
        Sleep for the given number of milliseconds.
        Specified by:
        sleep in interface Sleeper
        Parameters:
        millis - the sleep duration
        Throws:
        InterruptedException - if sleep is interrupted