|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.northwestern.at.utils.ThreadUtils
public class ThreadUtils
Thread utilities.
This static class provides various utility methods for working with threads.
Constructor Summary | |
---|---|
protected |
ThreadUtils()
Can't instantiate but can override. |
Method Summary | |
---|---|
static void |
setPriority(java.lang.Thread thread,
int priority)
Set thread priority. |
static void |
sleep(int sleepTime)
Sleep for specified number of milliseconds. |
static void |
waitForThread(java.lang.Thread thread)
Wait for a thread to finish. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected ThreadUtils()
Method Detail |
---|
public static void waitForThread(java.lang.Thread thread)
thread
- The thread to wait for. public static void setPriority(java.lang.Thread thread, int priority)
thread
- The thread.priority
- The new thread priority. public static void sleep(int sleepTime)
sleepTime
- The number of milliseconds yo sleep.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |