ThreadGroup.enumerate

ThreadGroup.enumerate

Class Overview | Class Members | This Package | All Packages

Syntax
public int enumerate( ThreadGroup list[], boolean recurse )
Parameters
list
an array into which to place the list of threads.
recurse
a flag indicating whether to recursively enumerate all included thread groups.
Returns
the number of thread groups put into the array.
Description
Copies into the specified array references to every active subgroup in this thread group. If the recurse flag is true, references to all active subgroups of the subgroups and so forth are also included.

An application should use the activeGroupCount method to get an estimate of how big the array should be.

See Also
activeGroupCount