| Modifier and Type | Field and Description |
|---|---|
| private final long |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public long | Returns: a unique ID for the threadReturns a unique ID for both native threads and Java threads that can't be reused within the lifespan of the JVM. |
| public String | Returns: the Java thread name, ornull if doesn't existReturns the Java thread name, or |
| public long | Returns: the Java thread ID, or-1 if it's not a Java threadReturns the Java thread ID, or |
| public String | Returns: the OS thread name, ornull if doesn't existReturns the thread name used by the operating system. |
| public long | Returns: the OS thread ID, or-1 if doesn't existReturns the thread ID used by the operating system. |
| public RecordedThreadGroup | Returns: the thread group, ornull if doesn't existReturns the Java thread group, if available. |
| public boolean | Returns: true if this is a virtual Thread, false otherwiseReturns |
| uniqueId | back to summary |
|---|---|
| private final long uniqueId | |
| RecordedThread | back to summary |
|---|---|
| pack-priv RecordedThread(ObjectContext objectContext, long id, Object[] values) | |
| getId | back to summary |
|---|---|
| public long getId() Returns a unique ID for both native threads and Java threads that can't be reused within the lifespan of the JVM.
See
See
| |
| getJavaName | back to summary |
|---|---|
| public String getJavaName() Returns the Java thread name, or
Returns
| |
| getJavaThreadId | back to summary |
|---|---|
| public long getJavaThreadId() Returns the Java thread ID, or
| |
| getOSName | back to summary |
|---|---|
| public String getOSName() Returns the thread name used by the operating system.
| |
| getOSThreadId | back to summary |
|---|---|
| public long getOSThreadId() Returns the thread ID used by the operating system.
| |
| getThreadGroup | back to summary |
|---|---|
| public RecordedThreadGroup getThreadGroup() Returns the Java thread group, if available.
| |
| isVirtual | back to summary |
|---|---|
| public boolean isVirtual() Returns
| |