|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.msc.value.ThreadLocalValue<T>
T - the value typepublic final class ThreadLocalValue<T>
A thread-local value. Used to pass values in special situations.
| Constructor Summary | |
|---|---|
ThreadLocalValue()
Construct a new instance. |
|
| Method Summary | |
|---|---|
Value<? extends T> |
getAndSetValue(Value<? extends T> newValue)
Get and set the value. |
T |
getValue()
Get the actual value. |
void |
setValue(Value<? extends T> newValue)
Set this value, replacing any current value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ThreadLocalValue()
| Method Detail |
|---|
public T getValue()
getValue in interface Value<T>public void setValue(Value<? extends T> newValue)
newValue - the new value to setpublic Value<? extends T> getAndSetValue(Value<? extends T> newValue)
finally block).
newValue - the new value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||