|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.ThreadGroup
Constructor Summary | |
ThreadGroup(java.lang.String name)
Constructs a new thread group. |
|
ThreadGroup(ThreadGroup parent,
java.lang.String name)
Creates a new thread group. |
Method Summary | |
int |
getMaxPriority()
Returns the maximum priority of this thread group. |
java.lang.String |
getName()
Returns the name of this thread group. |
ThreadGroup |
getParent()
Returns the parent of this thread group. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ThreadGroup(java.lang.String name)
The checkAccess
method of the parent thread group is
called with no arguments; this may result in a security exception.
name
- the name of the new thread group.
SecurityException
- if the current thread cannot create a
thread in the specified thread group.java.lang.ThreadGroup#checkAccess()
public ThreadGroup(ThreadGroup parent, java.lang.String name)
The checkAccess
method of the parent thread group is
called with no arguments; this may result in a security exception.
parent
- the parent thread group.name
- the name of the new thread group.
NullPointerException
- if the thread group argument is
null
.
SecurityException
- if the current thread cannot create a
thread in the specified thread group.SecurityException
,
java.lang.ThreadGroup#checkAccess()
Method Detail |
public final java.lang.String getName()
public final ThreadGroup getParent()
First, if the parent is not null
, the
checkAccess
method of the parent thread group is
called with no arguments; this may result in a security exception.
null
.
SecurityException
- if the current thread cannot modify
this thread group.java.lang.ThreadGroup#checkAccess()
,
SecurityException
,
RuntimePermission
public final int getMaxPriority()
#setMaxPriority
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |