Class AtomicLong.Serializer
- java.lang.Object
-
- com.oracle.coherence.concurrent.atomic.AtomicLong.Serializer
-
- All Implemented Interfaces:
PofSerializer<AtomicLong>
- Enclosing interface:
- AtomicLong
public static class AtomicLong.Serializer extends Object implements PofSerializer<AtomicLong>
POF serializer implementation.
-
-
Constructor Summary
Constructors Constructor Description Serializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AtomicLong
deserialize(PofReader in)
Deserialize a user type instance from a POF stream by reading its state using the specified PofReader object.void
serialize(PofWriter out, AtomicLong value)
Serialize a user type instance to a POF stream by writing its state using the specified PofWriter object.
-
-
-
Method Detail
-
serialize
public void serialize(PofWriter out, AtomicLong value) throws IOException
Description copied from interface:PofSerializer
Serialize a user type instance to a POF stream by writing its state using the specified PofWriter object.An implementation of PofSerializer is required to follow the following steps in sequence for writing out an object of a user type:
- If the object is evolvable, the implementation must set the version
by calling
PofWriter.setVersionId(int)
. - The implementation may write any combination of the properties of the user type by using the "write" methods of the PofWriter, but it must do so in the order of the property indexes.
- After all desired properties of the user type have been written,
the implementation must terminate the writing of the user type by
calling
PofWriter.writeRemainder(com.tangosol.util.Binary)
.
- Specified by:
serialize
in interfacePofSerializer<AtomicLong>
- Parameters:
out
- the PofWriter with which to write the object's statevalue
- the object to serialize- Throws:
IOException
- if an I/O error occurs
- If the object is evolvable, the implementation must set the version
by calling
-
deserialize
public AtomicLong deserialize(PofReader in) throws IOException
Description copied from interface:PofSerializer
Deserialize a user type instance from a POF stream by reading its state using the specified PofReader object.An implementation of PofSerializer is required to follow the following steps in sequence for reading in an object of a user type:
- If the object is evolvable, the implementation must get the version
by calling
PofReader.getVersionId()
. - The implementation may read any combination of the properties of
the user type by using "read" methods of the PofReader, but it must
do so in the order of the property indexes. Additionally, the
implementation must call
PofReader.registerIdentity(java.lang.Object)
with the new instance prior to reading any properties which are user type instances themselves. - After all desired properties of the user type have been read, the
implementation must terminate the reading of the user type by
calling
PofReader.readRemainder()
.
- Specified by:
deserialize
in interfacePofSerializer<AtomicLong>
- Parameters:
in
- the PofReader with which to read the object's state- Returns:
- the deserialized user type instance
- Throws:
IOException
- if an I/O error occurs
- If the object is evolvable, the implementation must get the version
by calling
-
-