public interface Portable
PortableFactory
.
Portable serialization has the following advantages:
SerializationConfig.setPortableVersion(int)
)Modifier and Type | Method and Description |
---|---|
int |
getClassId()
Returns class identifier for this portable class.
|
int |
getFactoryId()
Returns PortableFactory ID for this portable class
|
void |
readPortable(PortableReader reader)
Read portable fields using PortableReader
|
void |
writePortable(PortableWriter writer)
Serialize this portable object using PortableWriter
|
int getFactoryId()
int getClassId()
void writePortable(PortableWriter writer) throws IOException
writer
- PortableWriterIOException
- in case of any exceptional casevoid readPortable(PortableReader reader) throws IOException
reader
- PortableReaderIOException
- in case of any exceptional caseCopyright © 2023 Hazelcast, Inc.. All rights reserved.