|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PerThreadValue<T>
Provides access to per-thread (and, by extension, per-request) data, managed by the PerthreadManager
.
A PerThreadValue stores a particular type of information.
PerthreadManager.createValue()
Method Summary | |
---|---|
boolean |
exists()
Is a value stored (even null)? |
T |
get()
Reads the current per-thread value, or returns null if no value has been stored. |
T |
get(T defaultValue)
Gets the current per-thread value if it exists (even if null), or the defaultValue if no value has been stored. |
T |
set(T newValue)
Sets the current per-thread value, then returns that value. |
Method Detail |
---|
boolean exists()
T get()
T get(T defaultValue)
T set(T newValue)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |