public final class IlrThread
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
long |
getBlockedCount()
Returns the total number of times this thread blocked to enter or reenter a monitor.
|
long |
getBlockedTime()
Returns the approximate accumulated elapsed time in milliseconds that this thread has blocked to enter or reenter
a monitor since the thread contention monitoring is enabled.
|
long |
getId()
Gets the thread ID of the thread.
|
java.lang.String |
getName()
Gets the name of the thread, if any.
|
long |
getWaitedCount()
Returns the total number of times this thread has been in the
WAITING or TIMED_WAITING
state. |
long |
getWaitedTime()
Returns the approximate accumulated time in milliseconds that the thread has waited for notification since the
monitoring is enabled.
|
int |
hashCode() |
java.lang.String |
toString() |
public java.lang.String getName()
public long getId()
long number generated when this thread
was created. The thread ID is unique and remains unchanged during its lifetime.Thread.getId()public long getWaitedTime()
-1L if the thread contention monitoring is disabled or not
avalaible.WAITING or
TIMED_WAITING state.ThreadMXBean.isThreadContentionMonitoringEnabled()public long getWaitedCount()
WAITING or TIMED_WAITING
state.WAITING or TIMED_WAITING
state.public long getBlockedTime()
-1L if thread
contention monitoring is disabled.BLOCKED state.ThreadMXBean.isThreadContentionMonitoringEnabled()public long getBlockedCount()
BLOCKED state.public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object© Copyright IBM Corp. 1987, 2017