Gemfire JavaDocs_test
Package org.apache.geode
Interface DataSerializable.Replaceable
-
- Enclosing interface:
- DataSerializable
public static interface DataSerializable.Replaceable
Replaceable
allows an object to write an alternative version of itself to aDataOutput
. It is similar to thewriteReplace
method of standard Java serialization.Note that if a
Replaceable
is alsoDataSerializable
, itstoData
method 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 java.lang.Object
replace()
Replaces this object with another in the "output stream" written byDataSerializer.writeObject(Object, DataOutput)
.
-
-
-
Method Detail
-
replace
java.lang.Object replace() throws java.io.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:
java.io.IOException
- if an exception is encountered
-
-