Package org.jboss.msc.value
Class ThreadLocalValue<T>
- java.lang.Object
-
- org.jboss.msc.value.ThreadLocalValue<T>
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.ThreadLocal<Value<? extends T>>
threadLocal
-
Constructor Summary
Constructors Constructor Description ThreadLocalValue()
Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.
-