IPortable InterfaceHazelcast .Net Client Class Library
Portable provides an alternative serialization method.

Namespace: Hazelcast.IO.Serialization
Assembly: Hazelcast.Net (in Hazelcast.Net.dll) Version: 3.7.1
Syntax

public interface IPortable

The IPortable type exposes the following members.

Methods

  NameDescription
Public methodGetClassId
Returns class identifier for this portable class.
Public methodGetFactoryId
Returns PortableFactory id for this portable class
Public methodReadPortable
Read portable fields using PortableReader
Public methodWritePortable
Serialize this portable object using PortableWriter
Top
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 SetPortableVersion(Int32) )
  • Fetching individual fields without having to rely on reflection.
  • Querying and indexing support without de-serialization and/or reflection.
See Also

Reference