IPortable Interface
Namespace: Hazelcast.Serialization
Assembly: Hazelcast.Net.dll
Portable provides an alternative serialization method.
public interface IPortable
Remarks
Portable provides an alternative serialization method. Instead of relying on reflection, each Portable is created by a registere IPortableFactory.
Portable serialization that have the following advantages:- Support multiversion of the same object type. (See SerializationOptions.SetPortableVersion(int) )
- Fetching individual fields without having to rely on reflection.
- Querying and indexing support without de-serialization and/or reflection.
Properties
| Name | Description |
|---|---|
| ClassId | Returns class identifier for this portable class. |
| FactoryId | Returns PortableFactory id for this portable class |
Methods
| Name | Description |
|---|---|
| ReadPortable(IPortableReader) | Read portable fields using PortableReader |
| WritePortable(IPortableWriter) | Serialize this portable object using PortableWriter |