All Implemented Interfaces:
Thread.UncaughtExceptionHandler

  • Constructor Summary

    Constructors

    Constructs a new thread group.

    Creates a new thread group.

  • Method Summary

    int

    Returns an estimate of the number of live platform threads in this thread group and its subgroups.

    int

    Returns an estimate of the number of groups in this thread group and its subgroups.

    final void

    Deprecated, for removal: This API element is subject to removal in a future version.

    final void

    destroy()

    Deprecated, for removal: This API element is subject to removal in a future version.

    int

    Copies into the specified array every live platform thread in this thread group and its subgroups.

    int

    enumerate(Thread[] list, boolean recurse)

    Copies into the specified array every live platform thread in this thread group.

    int

    Copies into the specified array references to every subgroup in this thread group and its subgroups.

    int

    Copies into the specified array references to every subgroup in this thread group.

    final int

    Returns the maximum priority of this thread group.

    getName()

    Returns the name of this thread group.

    getParent()

    Returns the parent of this thread group.

    final void

    interrupt()

    Interrupts all live platform threads in this thread group and its subgroups.

    final boolean

    isDaemon()

    Deprecated, for removal: This API element is subject to removal in a future version.

    boolean

    Deprecated, for removal: This API element is subject to removal in a future version.

    void

    list()

    Prints information about this thread group to the standard output.

    final boolean

    Tests if this thread group is either the thread group argument or one of its ancestor thread groups.

    final void

    setDaemon(boolean daemon)

    Deprecated, for removal: This API element is subject to removal in a future version.

    final void

    setMaxPriority(int pri)

    Sets the maximum priority of the group.

    toString()

    Returns a string representation of this Thread group.

    void

    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.

    Methods declared in class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Creates and returns a copy of this object.

    boolean

    Indicates whether some other object is "equal to" this one.

    protected void

    Deprecated, for removal: This API element is subject to removal in a future version.

    Returns the runtime class of this Object.

    int

    Returns a hash code value for this object.

    final void

    Wakes up a single thread that is waiting on this object's monitor.

    final void

    Wakes up all threads that are waiting on this object's monitor.

    final void

    Causes the current thread to wait until it is awakened, typically by being notified or interrupted.

    final void

    wait(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.

    final void

    wait(long timeoutMillis, int nanos)

    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.

  • Constructor Details

    • ThreadGroup

    • ThreadGroup

  • Method Details

    • getName

    • getParent

    • getMaxPriority

    • isDaemon

    • isDestroyed

    • setDaemon

    • setMaxPriority

    • parentOf

    • checkAccess

    • activeCount

    • enumerate

    • enumerate

    • activeGroupCount

    • enumerate

    • enumerate

    • interrupt

    • destroy

    • list

    • uncaughtException

    • toString