|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.zkoss.lang.Threads
public class Threads
Thread relevant utilities.
Constructor Summary | |
---|---|
Threads()
|
Method Summary | |
---|---|
static void |
dummy(java.lang.Object o)
A dummy function that is used to avoid compiler from optimizing statments around it. |
static void |
joinAndInterrupt(java.lang.Thread thd,
int timeout)
Waits a thread to die (and interrupt once a while) |
static void |
pause(int millisecs)
Deprecated. As of release 3.0.0, replaced by sleep(int) |
static void |
setDaemon(java.lang.Thread thd,
boolean daemon)
Sets the priority without throwing any exception but log warning. |
static void |
setPriority(java.lang.Thread thd,
int priority)
Sets the priority without throwing any exception but log warning. |
static void |
sleep(int millisecs)
Put the current thread to sleep for a while. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Threads()
Method Detail |
---|
public static final void sleep(int millisecs)
SystemException
- if it is interrupted.public static final void pause(int millisecs)
sleep(int)
public static final void setPriority(java.lang.Thread thd, int priority)
public static final void setDaemon(java.lang.Thread thd, boolean daemon)
public static final void joinAndInterrupt(java.lang.Thread thd, int timeout) throws java.lang.InterruptedException
timeout
- how long to wait (0 means forever)
java.lang.InterruptedException
public static final void dummy(java.lang.Object o)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |