Modifier and Type | Field and Description |
---|---|
private static final AccessControlContext | ACC
References Deprecated
AccessControlContext is deprecated or references (maybe indirectly) at least one deprecated element.
|
private static final long | |
private volatile boolean | |
private static final long | |
private static final long | |
private static final ThreadGroup | |
private static final long | |
private static final AtomicInteger | |
private static final Unsafe |
Access | Constructor and Description |
---|---|
private |
Modifier and Type | Method and Description |
---|---|
private static Thread | |
public final void | |
private static String | |
public static Thread | |
public static Thread | newSystemThread(String name, Runnable target)
Returns a new InnocuousThread with null context class loader. |
public static Thread | newSystemThread(String name, Runnable target, int priority)
Returns a new InnocuousThread with null context class loader. |
public static Thread | newSystemThread(String name, Runnable target, long stackSize, int priority)
Returns a new InnocuousThread with null context class loader. |
public static Thread | |
public static Thread | |
public static Thread | |
public void | run()
Overrides java. Implements java. This method is run by the thread when it executes. |
public void | setContextClassLoader(ClassLoader
the context ClassLoader for this Thread, or null indicating the
system class loader (or, failing that, the bootstrap class loader) cl)Overrides java. Sets the context |
public void | setUncaughtExceptionHandler(Thread.
the object to use as this thread's uncaught exception
handler. If xnull then this thread has no explicit handler.Overrides java. Set the handler invoked when this thread abruptly terminates due to an uncaught exception. |
ACC | back to summary |
---|---|
private static final AccessControlContext ACC
References Deprecated
See corresponding docs for further information. |
CONTEXTCLASSLOADER | back to summary |
---|---|
private static final long CONTEXTCLASSLOADER |
hasRun | back to summary |
---|---|
private volatile boolean hasRun |
INHERITABLE_THREAD_LOCALS | back to summary |
---|---|
private static final long INHERITABLE_THREAD_LOCALS |
INHERITEDACCESSCONTROLCONTEXT | back to summary |
---|---|
private static final long INHERITEDACCESSCONTROLCONTEXT |
INNOCUOUSTHREADGROUP | back to summary |
---|---|
private static final ThreadGroup INNOCUOUSTHREADGROUP |
THREAD_LOCALS | back to summary |
---|---|
private static final long THREAD_LOCALS |
threadNumber | back to summary |
---|---|
private static final AtomicInteger threadNumber |
UNSAFE | back to summary |
---|---|
private static final Unsafe UNSAFE |
InnocuousThread | back to summary |
---|---|
private InnocuousThread(ThreadGroup group, Runnable target, String name, long stackSize, ClassLoader tccl) |
createThread | back to summary |
---|---|
private static Thread createThread(String name, Runnable target, long stackSize, ClassLoader loader, int priority) |
eraseThreadLocals | back to summary |
---|---|
public final void eraseThreadLocals() Drops all thread locals (and inherited thread locals). |
newName | back to summary |
---|---|
private static String newName() |
newSystemThread | back to summary |
---|---|
public static Thread newSystemThread(Runnable target) Returns a new InnocuousThread with an auto-generated thread name. Its context class loader is set to null. |
newSystemThread | back to summary |
---|---|
public static Thread newSystemThread(String name, Runnable target) Returns a new InnocuousThread with null context class loader. |
newSystemThread | back to summary |
---|---|
public static Thread newSystemThread(String name, Runnable target, int priority) Returns a new InnocuousThread with null context class loader. Thread priority is set to the given priority. |
newSystemThread | back to summary |
---|---|
public static Thread newSystemThread(String name, Runnable target, long stackSize, int priority) Returns a new InnocuousThread with null context class loader. Thread priority is set to the given priority. |
newThread | back to summary |
---|---|
public static Thread newThread(Runnable target) Returns a new InnocuousThread with an auto-generated thread name, and its context class loader is set to the system class loader. |
newThread | back to summary |
---|---|
public static Thread newThread(String name, Runnable target) Returns a new InnocuousThread with its context class loader set to the system class loader. |
newThread | back to summary |
---|---|
public static Thread newThread(String name, Runnable target, int priority) Returns a new InnocuousThread with its context class loader set to the system class loader. The thread priority will be set to the given priority. |
run | back to summary |
---|---|
public void run() Overrides java. Implements java. Doc from java. This method is run by the thread when it executes. Subclasses of This method is not intended to be invoked directly. If this thread is a
platform thread created with a
|
setContextClassLoader | back to summary |
---|---|
public void setContextClassLoader(ClassLoader cl) Overrides java. Doc from java. Sets the context The context If a security manager is present, its
|
setUncaughtExceptionHandler | back to summary |
---|---|
public void setUncaughtExceptionHandler(Thread. Overrides java. Doc from java. Set the handler invoked when this thread abruptly terminates due to an uncaught exception. A thread can take full control of how it responds to uncaught
exceptions by having its uncaught exception handler explicitly set.
If no such handler is set then the thread's
|