public class Sleeper extends Object
| Constructor and Description |
|---|
Sleeper() |
| Modifier and Type | Method and Description |
|---|---|
static void |
sleepTight(long timeout)
Sleeps without explicitly throwing an InterruptedException
|
static void |
sleepTightInSeconds(long timeoutInSeconds)
Sleeps without explicitly throwing an InterruptedException
|
public static void sleepTightInSeconds(long timeoutInSeconds)
timeoutInSeconds - Sleep time in seconds.RuntimeException - wrapping an InterruptedException if one gets thrownpublic static void sleepTight(long timeout)
timeout - the amout of time to sleepRuntimeException - wrapping an InterruptedException if one gets thrownCopyright © 2016. All rights reserved.