Java java.lang ThreadGroup fields, constructors, methods, implement or subclass

Example usage for Java java.lang ThreadGroup fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.lang ThreadGroup.

The text is from its open source code.

Subclass

java.lang.ThreadGroup has subclasses.
Click this link to see all its subclasses.

Constructor

ThreadGroup(String name)
Constructs a new thread group.
ThreadGroup(ThreadGroup parent, String name)
Creates a new thread group.

Method

intactiveCount()
Returns an estimate of the number of active threads in this thread group and its subgroups.
intactiveGroupCount()
Returns an estimate of the number of active groups in this thread group and its subgroups.
voidcheckAccess()
Determines if the currently running thread has permission to modify this thread group.
voiddestroy()
Destroys this thread group and all of its subgroups.
intenumerate(Thread list[], boolean recurse)
Copies into the specified array every active thread in this thread group.
intenumerate(ThreadGroup list[], boolean recurse)
Copies into the specified array references to every active subgroup in this thread group.
intenumerate(Thread list[])
Copies into the specified array every active thread in this thread group and its subgroups.
intenumerate(ThreadGroup list[])
Copies into the specified array references to every active subgroup in this thread group and its subgroups.
ClassgetClass()
Returns the runtime class of this Object .
intgetMaxPriority()
Returns the maximum priority of this thread group.
StringgetName()
Returns the name of this thread group.
ThreadGroupgetParent()
Returns the parent of this thread group.
voidinterrupt()
Interrupts all threads in this thread group.
booleanisDaemon()
Tests if this thread group is a daemon thread group.
booleanisDestroyed()
Tests if this thread group has been destroyed.
voidlist()
Prints information about this thread group to the standard output.
booleanparentOf(ThreadGroup g)
Tests if this thread group is either the thread group argument or one of its ancestor thread groups.
voidsetDaemon(boolean daemon)
Changes the daemon status of this thread group.
voidsetMaxPriority(int pri)
Sets the maximum priority of the group.
voidstop()
Stops all threads in this thread group.
StringtoString()
Returns a string representation of this Thread group.
voidwait(long timeoutMillis)
Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.