Package com.tangosol.io
Interface SerializationSupport
- 
- All Known Implementing Classes:
 PortableException,RequestIncompleteException,RequestPolicyException,RequestTimeoutException,ScriptAggregator
public interface SerializationSupportThe SerializationSupport interface provides the ability for objects that are serialized by anySerializerto affect the initial stage of serialization and the final stage of deserialization.The semantics of this interface's methods are identical to the
writeReplaceandreadResolvepseudo-interface methods defined by theSerializableinterface.This interface provides trivial implementations of both methods to allow implementors to override only the necessary one.
- Since:
 - Coherence 12.2.1
 - Author:
 - as,gg 2014.12.22
 
 
- 
- 
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default ObjectreadResolve()Designate a replacement for an object after an instance of it is read from the buffer.default ObjectwriteReplace()Designate an alternative object to be used when writing an object to the buffer. 
 - 
 
- 
- 
Method Detail
- 
writeReplace
default Object writeReplace() throws ObjectStreamException
Designate an alternative object to be used when writing an object to the buffer.This method is invoked by the
Serializerif the object implementsSerializationSupportinterface.- Returns:
 - an object which state should be written instead of the original one
 - Throws:
 ObjectStreamException
 
- 
readResolve
default Object readResolve() throws ObjectStreamException
Designate a replacement for an object after an instance of it is read from the buffer.This method is invoked by the
Serializerif the object implementsSerializationSupportinterface.- Returns:
 - an object that should be returned instead of the deserialized one
 - Throws:
 ObjectStreamException
 
 - 
 
 -