Class Atomics.SerializableAtomicStampedReference<V>
java.lang.Object
java.util.concurrent.atomic.AtomicStampedReference<V>
com.oracle.coherence.concurrent.atomic.Atomics.SerializableAtomicStampedReference<V>
- Type Parameters:
V- the type of object referred to by this reference
- All Implemented Interfaces:
ExternalizableLite,Serializable
- Enclosing class:
Atomics
public static class Atomics.SerializableAtomicStampedReference<V>
extends AtomicStampedReference<V>
implements ExternalizableLite
Extension to
AtomicStampedReference
to allow Java serialization.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionRequired for serialization.SerializableAtomicStampedReference(V initialRef, int initialStamp) -
Method Summary
Modifier and TypeMethodDescriptionvoidRestore the contents of this object by loading the object's state from the passed DataInput object.voidwriteExternal(DataOutput out) Save the contents of this object by storing the object's state into the passed DataOutput object.Methods inherited from class java.util.concurrent.atomic.AtomicStampedReference
attemptStamp, compareAndSet, get, getReference, getStamp, set, weakCompareAndSet
-
Constructor Details
-
SerializableAtomicStampedReference
public SerializableAtomicStampedReference()Required for serialization. -
SerializableAtomicStampedReference
- Parameters:
initialRef- the initial referenceinitialStamp- the initial stamp
-
-
Method Details
-
readExternal
Description copied from interface:ExternalizableLiteRestore the contents of this object by loading the object's state from the passed DataInput object.- Specified by:
readExternalin interfaceExternalizableLite- Parameters:
in- the DataInput stream to read data from in order to restore the state of this object- Throws:
IOException- if an I/O exception occurs
-
writeExternal
Description copied from interface:ExternalizableLiteSave the contents of this object by storing the object's state into the passed DataOutput object.- Specified by:
writeExternalin interfaceExternalizableLite- Parameters:
out- the DataOutput stream to write the state of this object to- Throws:
IOException- if an I/O exception occurs
-