Example usage for Java java.lang.management ThreadInfo fields, constructors, methods, implement or subclass
The text is from its open source code.
ThreadInfo | from(CompositeData cd) Returns a ThreadInfo object represented by the given CompositeData . |
long | getBlockedCount() Returns the total number of times that the thread associated with this ThreadInfo blocked to enter or reenter a monitor. |
long | getBlockedTime() Returns the approximate accumulated elapsed time (in milliseconds) that the thread associated with this ThreadInfo has blocked to enter or reenter a monitor since thread contention monitoring is enabled. |
MonitorInfo[] | getLockedMonitors() Returns an array of MonitorInfo objects, each of which represents an object monitor currently locked by the thread associated with this ThreadInfo . |
LockInfo[] | getLockedSynchronizers() Returns an array of LockInfo objects, each of which represents an ownable synchronizer currently locked by the thread associated with this ThreadInfo . |
LockInfo | getLockInfo() Returns the LockInfo of an object for which the thread associated with this ThreadInfo is blocked waiting. |
String | getLockName() Returns the LockInfo#toString string representation of an object for which the thread associated with this ThreadInfo is blocked waiting. |
long | getLockOwnerId() Returns the ID of the thread which owns the object for which the thread associated with this ThreadInfo is blocked waiting. |
String | getLockOwnerName() Returns the name of the thread which owns the object for which the thread associated with this ThreadInfo is blocked waiting. |
StackTraceElement[] | getStackTrace() Returns the stack trace of the thread associated with this ThreadInfo . |
long | getThreadId() Returns the ID of the thread associated with this ThreadInfo . |
String | getThreadName() Returns the name of the thread associated with this ThreadInfo . |
Thread.State | getThreadState() Returns the state of the thread associated with this ThreadInfo . |
long | getWaitedCount() Returns the total number of times that the thread associated with this ThreadInfo waited for notification. |
long | getWaitedTime() Returns the approximate accumulated elapsed time (in milliseconds) that the thread associated with this ThreadInfo has waited for notification since thread contention monitoring is enabled. |
boolean | isInNative() Tests if the thread associated with this ThreadInfo is executing native code via the Java Native Interface (JNI). |
boolean | isSuspended() Tests if the thread associated with this ThreadInfo is suspended. |
String | toString() Returns a string representation of this thread info. |