-
- All Known Implementing Classes:
SleepRobotImpl
public interface SleepRobot
-
-
Method Summary
Modifier and Type Method Description void
sleep(long milliseconds)
Same asThread.sleep(long)
}, but without checked exceptions.void
sleep(long duration, TimeUnit timeUnit)
Same asThread.sleep(long)
, but without checked exceptions.
-
-
-
Method Detail
-
sleep
void sleep(long milliseconds)
Same asThread.sleep(long)
}, but without checked exceptions.- Parameters:
milliseconds
- the duration in milliseconds to sleep for
-
sleep
void sleep(long duration, TimeUnit timeUnit)
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
-
-