|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hivemind.service.impl.ThreadLocalStorageImpl
public class ThreadLocalStorageImpl
Implementation of ThreadLocalStorage
.
Starting with release 1.2, this implementation was simplified, and its service model changed to threaded.
Constructor Summary | |
---|---|
ThreadLocalStorageImpl()
|
Method Summary | |
---|---|
void |
clear()
Clears all keys. |
java.lang.Object |
get(java.lang.String key)
Returns the thread-local object for the given key, or null if no such object exists. |
void |
put(java.lang.String key,
java.lang.Object value)
Stores the value object at the given key, overwriting any prior value that may have been stored at that key. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ThreadLocalStorageImpl()
Method Detail |
---|
public java.lang.Object get(java.lang.String key)
ThreadLocalStorage
get
in interface ThreadLocalStorage
public void put(java.lang.String key, java.lang.Object value)
ThreadLocalStorage
put
in interface ThreadLocalStorage
public void clear()
ThreadLocalStorage
clear
in interface ThreadLocalStorage
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |