|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.emory.mathcs.util.concurrent.ThreadUtils
Low-level thread access utilities.
Method Summary | |
static Future |
asyncDestroyThreadGroup(java.lang.ThreadGroup tg,
boolean suicide,
Callback cb,
java.lang.ThreadDeath cause)
|
static Future |
asyncDestroyThreadGroup(java.lang.ThreadGroup tg,
Callback cb)
|
static Future |
asyncDestroyThreadGroup(java.lang.ThreadGroup tg,
Callback cb,
java.lang.ThreadDeath cause)
|
static Future |
asyncDestroyThreadGroup(java.lang.ThreadGroup tg,
java.lang.Thread[] waitFor,
Callback cb,
java.lang.ThreadDeath cause)
|
static Future |
asyncResumeThreadGroup(java.lang.ThreadGroup tg,
java.lang.Thread[] exclude,
Callback cb)
|
static Future |
asyncStopThreadGroup(java.lang.ThreadGroup tg,
boolean suicide,
Callback cb,
java.lang.ThreadDeath cause)
|
static Future |
asyncStopThreadGroup(java.lang.ThreadGroup tg,
Callback cb)
|
static Future |
asyncStopThreadGroup(java.lang.ThreadGroup tg,
java.lang.Thread[] exclude,
Callback cb,
java.lang.ThreadDeath cause)
|
static Future |
asyncSuspendThreadGroup(java.lang.ThreadGroup tg,
boolean suicide,
Callback cb)
|
static Future |
asyncSuspendThreadGroup(java.lang.ThreadGroup tg,
java.lang.Thread[] exclude,
Callback cb)
|
static boolean |
destroyThreadGroup(java.lang.ThreadGroup tg,
long timeout)
|
static boolean |
destroyThreadGroup(java.lang.ThreadGroup tg,
long timeout,
boolean suicide,
java.lang.ThreadDeath cause)
|
static boolean |
destroyThreadGroup(java.lang.ThreadGroup tg,
long timeout,
java.lang.Thread[] waitFor,
java.lang.ThreadDeath cause)
|
static boolean |
destroyThreadGroup(java.lang.ThreadGroup tg,
long timeout,
java.lang.ThreadDeath cause)
|
static java.lang.ThreadGroup |
getTopLevelThreadGroup()
Returns the root thread group. |
static boolean |
isTerminated(java.lang.Thread thread)
|
static void |
resumeThread(java.lang.Thread t)
|
static boolean |
resumeThreadGroup(java.lang.ThreadGroup tg,
long timeout,
java.lang.Thread[] exclude)
|
static void |
stopThread(java.lang.Thread t)
Stops specified thread. |
static boolean |
stopThread(java.lang.Thread t,
long timeout,
java.lang.ThreadDeath cause)
Stops specified thread with specified timeout and cause. |
static void |
stopThread(java.lang.Thread t,
java.lang.ThreadDeath cause)
Stops specified thread with specified cause. |
static boolean |
stopThreadGroup(java.lang.ThreadGroup tg,
long timeout)
|
static boolean |
stopThreadGroup(java.lang.ThreadGroup tg,
long timeout,
boolean suicide,
java.lang.ThreadDeath cause)
|
static boolean |
stopThreadGroup(java.lang.ThreadGroup tg,
long timeout,
java.lang.Thread[] exclude,
java.lang.ThreadDeath cause)
|
static boolean |
suspendThread(java.lang.Thread t)
|
static boolean |
suspendThreadGroup(java.lang.ThreadGroup tg,
long timeout,
boolean suicide)
|
static boolean |
suspendThreadGroup(java.lang.ThreadGroup tg,
long timeout,
java.lang.Thread[] exclude)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static java.lang.ThreadGroup getTopLevelThreadGroup()
public static void stopThread(java.lang.Thread t)
t
- the thread to stoppublic static void stopThread(java.lang.Thread t, java.lang.ThreadDeath cause)
t
- the thread to stopcause
- the stop causepublic static boolean isTerminated(java.lang.Thread thread)
public static boolean stopThread(java.lang.Thread t, long timeout, java.lang.ThreadDeath cause) throws java.lang.InterruptedException
t
- the thread to stoptimeout
- number of milliseconds to wait for stop to completecause
- the stop cause
java.lang.InterruptedException
public static boolean suspendThread(java.lang.Thread t)
public static void resumeThread(java.lang.Thread t)
public static boolean destroyThreadGroup(java.lang.ThreadGroup tg, long timeout) throws java.lang.InterruptedException, ExecutionException, TimeoutException
java.lang.InterruptedException
ExecutionException
TimeoutException
public static Future asyncDestroyThreadGroup(java.lang.ThreadGroup tg, Callback cb)
public static boolean destroyThreadGroup(java.lang.ThreadGroup tg, long timeout, java.lang.ThreadDeath cause) throws java.lang.InterruptedException, ExecutionException, TimeoutException
java.lang.InterruptedException
ExecutionException
TimeoutException
public static Future asyncDestroyThreadGroup(java.lang.ThreadGroup tg, Callback cb, java.lang.ThreadDeath cause)
public static boolean destroyThreadGroup(java.lang.ThreadGroup tg, long timeout, boolean suicide, java.lang.ThreadDeath cause) throws java.lang.InterruptedException, ExecutionException, TimeoutException
java.lang.InterruptedException
ExecutionException
TimeoutException
public static Future asyncDestroyThreadGroup(java.lang.ThreadGroup tg, boolean suicide, Callback cb, java.lang.ThreadDeath cause)
public static boolean destroyThreadGroup(java.lang.ThreadGroup tg, long timeout, java.lang.Thread[] waitFor, java.lang.ThreadDeath cause) throws java.lang.InterruptedException, ExecutionException, TimeoutException
java.lang.InterruptedException
ExecutionException
TimeoutException
public static Future asyncDestroyThreadGroup(java.lang.ThreadGroup tg, java.lang.Thread[] waitFor, Callback cb, java.lang.ThreadDeath cause)
public static boolean stopThreadGroup(java.lang.ThreadGroup tg, long timeout) throws java.lang.InterruptedException, ExecutionException, TimeoutException
java.lang.InterruptedException
ExecutionException
TimeoutException
public static Future asyncStopThreadGroup(java.lang.ThreadGroup tg, Callback cb)
public static boolean stopThreadGroup(java.lang.ThreadGroup tg, long timeout, boolean suicide, java.lang.ThreadDeath cause) throws java.lang.InterruptedException, ExecutionException, TimeoutException
java.lang.InterruptedException
ExecutionException
TimeoutException
public static Future asyncStopThreadGroup(java.lang.ThreadGroup tg, boolean suicide, Callback cb, java.lang.ThreadDeath cause)
public static boolean stopThreadGroup(java.lang.ThreadGroup tg, long timeout, java.lang.Thread[] exclude, java.lang.ThreadDeath cause) throws java.lang.InterruptedException, ExecutionException, TimeoutException
java.lang.InterruptedException
ExecutionException
TimeoutException
public static Future asyncStopThreadGroup(java.lang.ThreadGroup tg, java.lang.Thread[] exclude, Callback cb, java.lang.ThreadDeath cause)
public static boolean suspendThreadGroup(java.lang.ThreadGroup tg, long timeout, boolean suicide) throws java.lang.InterruptedException, ExecutionException, TimeoutException
java.lang.InterruptedException
ExecutionException
TimeoutException
public static Future asyncSuspendThreadGroup(java.lang.ThreadGroup tg, boolean suicide, Callback cb)
public static boolean suspendThreadGroup(java.lang.ThreadGroup tg, long timeout, java.lang.Thread[] exclude) throws java.lang.InterruptedException, ExecutionException, TimeoutException
java.lang.InterruptedException
ExecutionException
TimeoutException
public static Future asyncSuspendThreadGroup(java.lang.ThreadGroup tg, java.lang.Thread[] exclude, Callback cb)
public static boolean resumeThreadGroup(java.lang.ThreadGroup tg, long timeout, java.lang.Thread[] exclude) throws java.lang.InterruptedException, ExecutionException, TimeoutException
java.lang.InterruptedException
ExecutionException
TimeoutException
public static Future asyncResumeThreadGroup(java.lang.ThreadGroup tg, java.lang.Thread[] exclude, Callback cb)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |