Interface SleepRobot
- All Known Implementing Classes:
SleepRobotImpl
public interface SleepRobot
-
Method Summary
Modifier and TypeMethodDescriptionvoidsleep(long milliseconds) Same asThread.sleep(long)}, but without checked exceptions.voidSame asThread.sleep(long), but without checked exceptions.
-
Method Details
-
sleep
void sleep(long milliseconds) Same asThread.sleep(long)}, but without checked exceptions.- Parameters:
milliseconds- the duration in milliseconds to sleep for
-
sleep
Same asThread.sleep(long), but without checked exceptions.- Parameters:
duration- the duration to sleep fortimeUnit- the unit of time the duration to sleep for is in
-