ValueDataSerializers implement the optional Mergeable interface when it is
possible that the clients or replicas in the grid may have multiple versions
of the serializer. The Mergeable interface allows the VersionDataSerializer
to merge the two serialized forms when the data is updated, to prevent
data loss.
This method is invoked when updating a cache value. If the existing object contains
data that the current DataSerializer doesn't recognize, the two data streams can be combined
into the resulting merged data output stream.
Do not store or use the data streams beyond the confines of this
method call. The data streams are owned by the WebSphere eXtreme Scale
framework and my be closed, pooled or reused as required.
One of the MergeType attributes representing the form
of the object merge. Data in the mergedObject stream is ignored
if the value is other than ValueDataSerializer.Mergeable.MergeType.MERGE
Throws:
IOException - thrown if there is a problem reading or writing the data.