Java java.lang.management ThreadInfo fields, constructors, methods, implement or subclass

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

Introduction

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

The text is from its open source code.

Method

ThreadInfofrom(CompositeData cd)
Returns a ThreadInfo object represented by the given CompositeData .
longgetBlockedCount()
Returns the total number of times that the thread associated with this ThreadInfo blocked to enter or reenter a monitor.
longgetBlockedTime()
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 .
LockInfogetLockInfo()
Returns the LockInfo of an object for which the thread associated with this ThreadInfo is blocked waiting.
StringgetLockName()
Returns the LockInfo#toString string representation of an object for which the thread associated with this ThreadInfo is blocked waiting.
longgetLockOwnerId()
Returns the ID of the thread which owns the object for which the thread associated with this ThreadInfo is blocked waiting.
StringgetLockOwnerName()
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 .
longgetThreadId()
Returns the ID of the thread associated with this ThreadInfo .
StringgetThreadName()
Returns the name of the thread associated with this ThreadInfo .
Thread.StategetThreadState()
Returns the state of the thread associated with this ThreadInfo .
longgetWaitedCount()
Returns the total number of times that the thread associated with this ThreadInfo waited for notification.
longgetWaitedTime()
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.
booleanisInNative()
Tests if the thread associated with this ThreadInfo is executing native code via the Java Native Interface (JNI).
booleanisSuspended()
Tests if the thread associated with this ThreadInfo is suspended.
StringtoString()
Returns a string representation of this thread info.