| java.lang.Object java.lang.Thread org.apache.tomcat.util.threads.ThreadWithAttributes
ThreadWithAttributes | public class ThreadWithAttributes extends Thread (Code) | | Special thread that allows storing of attributes and notes.
A guard is used to prevent untrusted code from accessing the
attributes.
This avoids hash lookups and provide something very similar
with ThreadLocal ( but compatible with JDK1.1 and faster on
JDK < 1.4 ).
The main use is to store 'state' for monitoring ( like "processing
request 'GET /' ").
|
MAX_NOTES | public static int MAX_NOTES(Code) | | |
getAttributes | final public Hashtable getAttributes(Object control)(Code) | | Generic attributes. You'll need a hashtable lookup -
you can use notes for array access.
|
getCurrentStage | final public String getCurrentStage(Object control)(Code) | | Information about the curent performed operation
|
getParam | final public Object getParam(Object control)(Code) | | Information about the current request ( or the main object
we are processing )
|
setCurrentStage | final public void setCurrentStage(Object control, String currentStage)(Code) | | |
setNote | final public void setNote(Object control, int id, Object value)(Code) | | Notes - for attributes that need fast access ( array )
The application is responsible for id management
|
|
|