public class SleepRobotImpl extends java.lang.Object implements SleepRobot
| Constructor and Description |
|---|
SleepRobotImpl() |
| Modifier and Type | Method and 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. |
public void sleep(long milliseconds)
SleepRobotThread.sleep(long)}, but without checked exceptions.sleep in interface SleepRobotmilliseconds - the duration in milliseconds to sleep forpublic void sleep(long duration,
java.util.concurrent.TimeUnit timeUnit)
SleepRobotThread.sleep(long), but without checked exceptions.sleep in interface SleepRobotduration - the duration to sleep fortimeUnit - the unit of time the duration to sleep for is in