Package | Description |
---|---|
java.lang.management |
Provides the management interfaces for monitoring and management of the
Java virtual machine and other components in the Java runtime.
|
Modifier and Type | Method and Description |
---|---|
ThreadInfo[] |
ThreadMXBean.dumpAllThreads(boolean lockedMonitors,
boolean lockedSynchronizers)
Returns an array of
ThreadInfo objects holding information on all
threads that were alive when the call was invoked. |
static ThreadInfo |
ThreadInfo.from(CompositeData cd)
Receives a
CompositeData representing a ThreadInfo
object and attempts to return the root ThreadInfo
instance. |
ThreadInfo |
ThreadMXBean.getThreadInfo(long id)
Returns a
ThreadInfo object for the thread with the specified
identifier. |
ThreadInfo[] |
ThreadMXBean.getThreadInfo(long[] ids)
Returns an array of
ThreadInfo objects ; one for each of the
threads specified in the input array of identifiers. |
ThreadInfo[] |
ThreadMXBean.getThreadInfo(long[] ids,
boolean lockedMonitors,
boolean lockedSynchronizers)
Returns an array of
ThreadInfo objects; one for each of the
threads specified in the ids argument. |
ThreadInfo[] |
ThreadMXBean.getThreadInfo(long[] ids,
int maxDepth)
Returns an array of
ThreadInfo objects ; one for each of the
threads specified in the ids argument. |
ThreadInfo |
ThreadMXBean.getThreadInfo(long id,
int maxDepth)
Returns a
ThreadInfo object for the thread with the specified
identifier. |
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2025, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.