VMware GemFire Java API Reference
Package org.apache.geode
Interface DataSerializable.Replaceable
-
- Enclosing interface:
- DataSerializable
public static interface DataSerializable.ReplaceableReplaceableallows an object to write an alternative version of itself to aDataOutput. It is similar to thewriteReplacemethod of standard Java serialization.Note that if a
Replaceableis alsoDataSerializable, itstoDatamethod will not be invoked. Instead, its replacement object will be written to the stream usingDataSerializer.writeObject(Object, DataOutput).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Objectreplace()Replaces this object with another in the "output stream" written byDataSerializer.writeObject(Object, DataOutput).
-
-
-
Method Detail
-
replace
Object replace() throws IOException
Replaces this object with another in the "output stream" written byDataSerializer.writeObject(Object, DataOutput).- Returns:
- the object that will be used to replace this object
- Throws:
IOException- if an exception is encountered
-
-