ThreadGroup (Java Platform SE 7 ) (original) (raw)
Modifier and Type
Method and Description
int
**[activeCount](../../java/lang/ThreadGroup.html#activeCount%28%29)**()
Returns an estimate of the number of active threads in this thread group and its subgroups.
int
**[activeGroupCount](../../java/lang/ThreadGroup.html#activeGroupCount%28%29)**()
Returns an estimate of the number of active groups in this thread group and its subgroups.
boolean
**[allowThreadSuspension](../../java/lang/ThreadGroup.html#allowThreadSuspension%28boolean%29)**(boolean b)
Deprecated.
The definition of this call depends on suspend(), which is deprecated. Further, the behavior of this call was never specified.
void
**[checkAccess](../../java/lang/ThreadGroup.html#checkAccess%28%29)**()
Determines if the currently running thread has permission to modify this thread group.
void
**[destroy](../../java/lang/ThreadGroup.html#destroy%28%29)**()
Destroys this thread group and all of its subgroups.
int
**[enumerate](../../java/lang/ThreadGroup.html#enumerate%28java.lang.Thread[]%29)**([Thread](../../java/lang/Thread.html "class in java.lang")[] list)
Copies into the specified array every active thread in this thread group and its subgroups.
int
**[enumerate](../../java/lang/ThreadGroup.html#enumerate%28java.lang.Thread[],%20boolean%29)**([Thread](../../java/lang/Thread.html "class in java.lang")[] list, boolean recurse)
Copies into the specified array every active thread in this thread group.
int
**[enumerate](../../java/lang/ThreadGroup.html#enumerate%28java.lang.ThreadGroup[]%29)**([ThreadGroup](../../java/lang/ThreadGroup.html "class in java.lang")[] list)
Copies into the specified array references to every active subgroup in this thread group and its subgroups.
int
**[enumerate](../../java/lang/ThreadGroup.html#enumerate%28java.lang.ThreadGroup[],%20boolean%29)**([ThreadGroup](../../java/lang/ThreadGroup.html "class in java.lang")[] list, boolean recurse)
Copies into the specified array references to every active subgroup in this thread group.
int
**[getMaxPriority](../../java/lang/ThreadGroup.html#getMaxPriority%28%29)**()
Returns the maximum priority of this thread group.
[String](../../java/lang/String.html "class in java.lang")
**[getName](../../java/lang/ThreadGroup.html#getName%28%29)**()
Returns the name of this thread group.
[ThreadGroup](../../java/lang/ThreadGroup.html "class in java.lang")
**[getParent](../../java/lang/ThreadGroup.html#getParent%28%29)**()
Returns the parent of this thread group.
void
**[interrupt](../../java/lang/ThreadGroup.html#interrupt%28%29)**()
Interrupts all threads in this thread group.
boolean
**[isDaemon](../../java/lang/ThreadGroup.html#isDaemon%28%29)**()
Tests if this thread group is a daemon thread group.
boolean
**[isDestroyed](../../java/lang/ThreadGroup.html#isDestroyed%28%29)**()
Tests if this thread group has been destroyed.
void
**[list](../../java/lang/ThreadGroup.html#list%28%29)**()
Prints information about this thread group to the standard output.
boolean
**[parentOf](../../java/lang/ThreadGroup.html#parentOf%28java.lang.ThreadGroup%29)**([ThreadGroup](../../java/lang/ThreadGroup.html "class in java.lang") g)
Tests if this thread group is either the thread group argument or one of its ancestor thread groups.
void
**[resume](../../java/lang/ThreadGroup.html#resume%28%29)**()
Deprecated.
This method is used solely in conjunction withThread.suspend and ThreadGroup.suspend, both of which have been deprecated, as they are inherently deadlock-prone. See Thread.suspend() for details.
void
**[setDaemon](../../java/lang/ThreadGroup.html#setDaemon%28boolean%29)**(boolean daemon)
Changes the daemon status of this thread group.
void
**[setMaxPriority](../../java/lang/ThreadGroup.html#setMaxPriority%28int%29)**(int pri)
Sets the maximum priority of the group.
void
**[stop](../../java/lang/ThreadGroup.html#stop%28%29)**()
Deprecated.
This method is inherently unsafe. SeeThread.stop() for details.
void
**[suspend](../../java/lang/ThreadGroup.html#suspend%28%29)**()
Deprecated.
This method is inherently deadlock-prone. SeeThread.suspend() for details.
[String](../../java/lang/String.html "class in java.lang")
**[toString](../../java/lang/ThreadGroup.html#toString%28%29)**()
Returns a string representation of this Thread group.
void
**[uncaughtException](../../java/lang/ThreadGroup.html#uncaughtException%28java.lang.Thread,%20java.lang.Throwable%29)**([Thread](../../java/lang/Thread.html "class in java.lang") t,[Throwable](../../java/lang/Throwable.html "class in java.lang") e)
Called by the Java Virtual Machine when a thread in this thread group stops because of an uncaught exception, and the thread does not have a specific Thread.UncaughtExceptionHandler installed.