Class SleepRobotImpl

  • All Implemented Interfaces:
    SleepRobot

    public class SleepRobotImpl
    extends java.lang.Object
    implements SleepRobot
    • Constructor Summary

      Constructors 
      Constructor Description
      SleepRobotImpl()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void sleep​(long milliseconds)
      Same as Thread.sleep(long)}, but without checked exceptions.
      void sleep​(long duration, java.util.concurrent.TimeUnit timeUnit)
      Same as Thread.sleep(long), but without checked exceptions.
      • Methods inherited from class java.lang.Object

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

      • SleepRobotImpl

        public SleepRobotImpl()
    • Method Detail

      • sleep

        public void sleep​(long milliseconds)
        Description copied from interface: SleepRobot
        Same as Thread.sleep(long)}, but without checked exceptions.
        Specified by:
        sleep in interface SleepRobot
        Parameters:
        milliseconds - the duration in milliseconds to sleep for
      • sleep

        public void sleep​(long duration,
                          java.util.concurrent.TimeUnit timeUnit)
        Description copied from interface: SleepRobot
        Same as Thread.sleep(long), but without checked exceptions.
        Specified by:
        sleep in interface SleepRobot
        Parameters:
        duration - the duration to sleep for
        timeUnit - the unit of time the duration to sleep for is in