public class SleepScheduler extends Object
| Constructor and Description |
|---|
SleepScheduler(long sleepTime) |
SleepScheduler(long from,
long to) |
| Modifier and Type | Method and Description |
|---|---|
void |
sleep()
Cause the current thread to sleep an amount of time
specified in this class
|
public SleepScheduler(long sleepTime)
public SleepScheduler(long from,
long to)
public void sleep()
throws InterruptedException
InterruptedException - thread has been interrupted before method has finished runningCopyright © 2018. All rights reserved.