public class ThreadWithAttributes extends Thread
Thread.State, Thread.UncaughtExceptionHandler| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_NOTES |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
ThreadWithAttributes(Object control,
Runnable r) |
| Modifier and Type | Method and Description |
|---|---|
Hashtable |
getAttributes(Object control)
Generic attributes.
|
String |
getCurrentStage(Object control)
Information about the curent performed operation
|
Object |
getNote(Object control,
int id) |
Object |
getParam(Object control)
Information about the current request ( or the main object
we are processing )
|
Object[] |
getThreadData(Object control) |
void |
setCurrentStage(Object control,
String currentStage) |
void |
setNote(Object control,
int id,
Object value)
Notes - for attributes that need fast access ( array )
The application is responsible for id management
|
void |
setParam(Object control,
Object param) |
void |
setThreadData(Object control,
Object[] thData) |
activeCount, checkAccess, clone, 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, yieldpublic static final int MAX_NOTES
public final void setNote(Object control, int id, Object value)
public final String getCurrentStage(Object control)
public final Object getParam(Object control)
Copyright © 2005–2017 Oracle Corporation. All rights reserved.