Package com.oracle.coherence.common.base
Class VolatileHolder<V>
- java.lang.Object
-
- com.oracle.coherence.common.base.VolatileHolder<V>
-
-
Constructor Summary
Constructors Constructor Description VolatileHolder()
Construct a VolatileHolder with no value.VolatileHolder(V value)
Construct a VolatileHolder with an initial value.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description V
get()
Return the held object.void
set(V value)
Specify the held object.
-
-
-
Field Detail
-
m_value
protected volatile V m_value
The held value.
-
-
Constructor Detail
-
VolatileHolder
public VolatileHolder()
Construct a VolatileHolder with no value.
-
VolatileHolder
public VolatileHolder(V value)
Construct a VolatileHolder with an initial value.- Parameters:
value
- the initial value
-
-