public class ThreadGroup extends Object
Constructor and Description |
---|
ThreadGroup(String s) |
ThreadGroup(ThreadGroup threadgroup,
String s) |
Modifier and Type | Method and Description |
---|---|
int |
activeCount() |
int |
activeGroupCount() |
boolean |
allowThreadSuspension(boolean flag) |
void |
checkAccess()
checkAccess
|
void |
destroy()
destroy
|
int |
enumerate(Thread[] athread) |
int |
enumerate(Thread[] athread,
boolean flag) |
int |
enumerate(ThreadGroup[] athreadgroup) |
int |
enumerate(ThreadGroup[] athreadgroup,
boolean flag) |
int |
getMaxPriority() |
String |
getName() |
ThreadGroup |
getParent() |
boolean |
isDaemon() |
boolean |
isDestroyed() |
void |
list()
list
|
boolean |
parentOf(ThreadGroup threadgroup) |
void |
resume()
resume
|
void |
setDaemon(boolean flag) |
void |
setMaxPriority(int i) |
void |
stop()
stop
|
void |
suspend()
suspend
|
String |
toString()
Returns a string representation of the object.
|
void |
uncaughtException(Thread thread,
Throwable throwable) |
public ThreadGroup(String s)
s
- ?public ThreadGroup(ThreadGroup threadgroup, String s)
threadgroup
- ?s
- ?public int activeCount()
public int activeGroupCount()
public boolean allowThreadSuspension(boolean flag)
flag
- ?public final void checkAccess()
public final void destroy()
public int enumerate(Thread[] athread)
athread
- ?public int enumerate(Thread[] athread, boolean flag)
athread
- ?flag
- ?public int enumerate(ThreadGroup[] athreadgroup)
athreadgroup
- ?public int enumerate(ThreadGroup[] athreadgroup, boolean flag)
athreadgroup
- ?flag
- ?public final int getMaxPriority()
public final String getName()
public final ThreadGroup getParent()
public final boolean isDaemon()
public boolean isDestroyed()
public void list()
public final boolean parentOf(ThreadGroup threadgroup)
threadgroup
- ?public final void resume()
public final void setDaemon(boolean flag)
flag
- ?public final void setMaxPriority(int i)
i
- ?public final void stop()
public final void suspend()
public String toString()
Object
toString
method returns a string that
"textually represents" this object. The result should
be a concise but informative representation that is easy for a
person to read.
It is recommended that all subclasses override this method.
The toString
method for class Object
returns a string consisting of the name of the class of which the
object is an instance, the at-sign character `@
', and
the unsigned hexadecimal representation of the hash code of the
object.