Package com.oracle.coherence.common.base
Class VolatileHolder<V>
java.lang.Object
com.oracle.coherence.common.base.VolatileHolder<V>
- Type Parameters:
V
- the value type
- All Implemented Interfaces:
Holder<V>
VolatileHolder is a basic implementation of the Holder interface where
the held object is referenced from a volatile reference.
- Author:
- mf 2010.12.02
-
Field Summary
-
Constructor Summary
ConstructorDescriptionConstruct a VolatileHolder with no value.VolatileHolder
(V value) Construct a VolatileHolder with an initial value. -
Method Summary
-
Field Details
-
m_value
The held value.
-
-
Constructor Details
-
VolatileHolder
public VolatileHolder()Construct a VolatileHolder with no value. -
VolatileHolder
Construct a VolatileHolder with an initial value.- Parameters:
value
- the initial value
-
-
Method Details