|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.ThreadLocal
com.groiss.ds.ThreadLocal2
public class ThreadLocal2
Same as java.lang.ThreadLocal, plus monitoring utility
| Constructor Summary | |
|---|---|
ThreadLocal2()
Creates a ThreadLocal variable. |
|
| Method Summary | |
|---|---|
java.lang.Object |
get()
Returns the value in the calling thread's copy of this ThreadLocal variable. |
java.util.HashMap |
getThreads()
Returns the HashMap, keys are the threads |
protected java.lang.Object |
initialValue()
Returns the calling thread's initial value for this ThreadLocal variable. |
void |
set(java.lang.Object value)
Sets the calling thread's instance of this ThreadLocal variable to the given value. |
| Methods inherited from class java.lang.ThreadLocal |
|---|
remove |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ThreadLocal2()
| Method Detail |
|---|
protected java.lang.Object initialValue()
initialValue in class java.lang.ThreadLocalpublic java.lang.Object get()
get in class java.lang.ThreadLocalpublic void set(java.lang.Object value)
set in class java.lang.ThreadLocalvalue - the value to be stored in the calling threads' copy of
this ThreadLocal.public java.util.HashMap getThreads()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||