Interface SleepRobot

All Known Implementing Classes:
SleepRobotImpl

public interface SleepRobot
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    sleep(long milliseconds)
    Same as Thread.sleep(long)}, but without checked exceptions.
    void
    sleep(long duration, TimeUnit timeUnit)
    Same as Thread.sleep(long), but without checked exceptions.
  • Method Details

    • sleep

      void sleep(long milliseconds)
      Same as Thread.sleep(long)}, but without checked exceptions.
      Parameters:
      milliseconds - the duration in milliseconds to sleep for
    • sleep

      void sleep(long duration, TimeUnit timeUnit)
      Same as Thread.sleep(long), but without checked exceptions.
      Parameters:
      duration - the duration to sleep for
      timeUnit - the unit of time the duration to sleep for is in