|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectutils.ThreadUtils
public class ThreadUtils
User: lyon Date: Jul 25, 2007 Time: 8:04:22 AM Copyright DocJava, Inc. 2005.
Constructor Summary | |
---|---|
ThreadUtils()
|
Method Summary | |
---|---|
static void |
randomSleep()
sleep a random amount of time from 0 to 255 ms. |
static void |
sleep()
|
static void |
sleep(float i)
Sleep in seconds |
static void |
sleep(int i)
This will cause a block of the thread of execution for i seconds. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ThreadUtils()
Method Detail |
---|
public static void sleep(int i)
i
- the number of seconds to block.public static void randomSleep()
public static void sleep(float i)
public static void sleep()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |