public class SleepScheduler extends Object
Constructor and Description |
---|
SleepScheduler(long sleepTime)
Constructs a sleep scheduler with fix sleep time.
|
SleepScheduler(long min,
long max)
Constructs a sleep scheduler with range of sleep time.
|
Modifier and Type | Method and Description |
---|---|
long |
getSleepTime()
Get the amount of time to wait specified in this class.
|
public SleepScheduler(long sleepTime)
sleepTime
- Sleep timepublic SleepScheduler(long min, long max)
min
- Minimum sleep timemax
- Maximum sleep timeCopyright © 2019. All rights reserved.