Modifier and Type | Method and Description |
---|---|
java.lang.String |
getContendedMonitor()
Returns the name of the object whose monitor this thread is waiting to
enter or regain.
|
java.lang.String |
getContendedMonitorOwner()
Returns the name of the thread that has the lock on the monitor that this thread
is waiting to enter or regain.
|
java.lang.management.MonitorInfo[] |
getLockedMonitors()
Returns an array which contains information about the object monitors currently
locked by this thread.
|
java.lang.management.LockInfo[] |
getLockedSynchronizers()
Returns an array of synchronizer objects that are currently owned (exclusively) by this thread.
|
java.lang.String |
getName()
Returns the name of this thread.
|
java.lang.String[] |
getOwnedMonitors()
Returns the monitors that are owned by this thread.
|
java.lang.StackTraceElement[] |
getStackTrace()
Returns the stack trace of this thread.
|
java.lang.Thread.State |
getState()
Returns the state of this thread.
|
java.lang.String getName()
java.lang.Thread.State getState()
java.lang.String[] getOwnedMonitors()
java.lang.String getContendedMonitor()
null
if this
thread is not waiting for a monitor.java.lang.String getContendedMonitorOwner()
java.lang.StackTraceElement[] getStackTrace()
java.lang.management.MonitorInfo[] getLockedMonitors()
java.lang.management.LockInfo[] getLockedSynchronizers()