public final class Target_java_lang_Thread extends Object
Modifier and Type | Method and Description |
---|---|
void |
exit() |
ClassLoader |
getContextClassLoader() |
long |
getId() |
boolean |
isDaemon() |
boolean |
isInterrupted()
Avoid in VM-internal contexts: this method is not
final and can be overridden with
code that does locking or performs other actions that can be unsafe in a specific context. |
boolean |
isVirtual() |
void |
setContextClassLoader(ClassLoader cl) |
protected void |
setNativeName(String name) |
static Thread |
startVirtualThread(Runnable task) |
public ClassLoader getContextClassLoader()
public void setContextClassLoader(ClassLoader cl)
public boolean isVirtual()
public void exit()
public long getId()
public boolean isDaemon()
protected void setNativeName(String name)
public boolean isInterrupted()
final
and can be overridden with
code that does locking or performs other actions that can be unsafe in a specific context.
Use JavaThreads.isInterrupted(java.lang.Thread)
instead.