|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.waveset.util.SafeSleep
Initially copied from com.waveset.adapter.util, but then modified it to be more robust to changes in the system clock.
Constructor Summary | |
SafeSleep()
|
Method Summary | |
static void |
sleep(long millis)
Sleep for a total of millis milliseconds. |
static void |
sleepUntil(java.util.Date endDate)
Sleep until the endDate. |
static boolean |
sleepUntilInterrupted(long millis)
Same as sleep except InterruptedException is not thrown. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SafeSleep()
Method Detail |
public static void sleep(long millis) throws java.lang.InterruptedException
millis
- milliseconds to sleep
java.lang.InterruptedException
public static boolean sleepUntilInterrupted(long millis)
public static void sleepUntil(java.util.Date endDate) throws java.lang.InterruptedException
endDate
- Date to return execution from the method
java.lang.InterruptedException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |