public class CatalystThread extends Thread
The Catalyst thread primarily serves to store a Context for the current thread.
The context is stored in a WeakReference in order to allow the thread to be garbage collected.
There is no Context associated with the thread when it is first created.
It is the responsibility of thread creators to set the thread context when appropriate.
Thread.State, Thread.UncaughtExceptionHandlerMAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
CatalystThread(Runnable target,
String name) |
| Modifier and Type | Method and Description |
|---|---|
Context |
getContext()
Returns the thread context.
|
void |
setContext(Context context)
Sets the thread context.
|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, run, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldCopyright © 2013–2015. All rights reserved.