public final class Sleeper extends Object
SleeperException
Modifier and Type | Field and Description |
---|---|
static long |
ONE_HOUR
Number of milliseconds representing 1 hour.
|
static long |
ONE_MINUTE
Number of milliseconds representing 1 minute.
|
static long |
ONE_SECOND
Number of milliseconds representing 1 second.
|
Modifier and Type | Method and Description |
---|---|
static void |
sleepHours(int hours)
Sleeps for the number of hours specified.
|
static void |
sleepMillis(long milliseconds)
Sleeps for the number of milliseconds specified.
|
static void |
sleepMinutes(int minutes)
Sleeps for the number of minutes specified.
|
static void |
sleepNanos(long nanoSeconds)
Sleeps for the number of nanoseconds specified.
|
static void |
sleepSeconds(int seconds)
Sleeps for the number of seconds specified.
|
public static final long ONE_SECOND
public static final long ONE_MINUTE
public static final long ONE_HOUR
public static void sleepMillis(long milliseconds)
milliseconds
- millisecondspublic static void sleepNanos(long nanoSeconds)
nanoSeconds
- nanosecondspublic static void sleepSeconds(int seconds)
seconds
- secondspublic static void sleepMinutes(int minutes)
minutes
- minutespublic static void sleepHours(int hours)
hours
- hoursCopyright © 2008–2023 Norconex Inc.. All rights reserved.