Package com.oracle.coherence.common.base
Class SimpleHolder<V>
java.lang.Object
com.oracle.coherence.common.base.SimpleHolder<V>
- Type Parameters:
V
- the value type
- All Implemented Interfaces:
Holder<V>
,Serializable
- Direct Known Subclasses:
IdentityHolder
,SimpleHolder
SimpleHolder is a basic implementation of the Holder interface.
There value is simply held by a non-volatile reference, thus SimpleHolder does not provide any inter-thread visibility guarantees.
- Author:
- mf 2010.12.02
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionConstruct a SimpleHolder with no value.SimpleHolder
(V value) Construct a SimpleHolder with an initial value. -
Method Summary
-
Field Details
-
m_value
The held value.
-
-
Constructor Details
-
SimpleHolder
public SimpleHolder()Construct a SimpleHolder with no value. -
SimpleHolder
Construct a SimpleHolder with an initial value.- Parameters:
value
- the initial value
-
-
Method Details