Hazelcast C++ Client
Public Member Functions | List of all members
hazelcast::client::serialization::Portable Class Referenceabstract

Classes that will be used with hazelcast data structures like IMap, IQueue etc should either inherit from one of the following classes : Portable , IdentifiedDataSerializable or it should be custom serializable. More...

#include <Portable.h>

+ Inheritance diagram for hazelcast::client::serialization::Portable:

Public Member Functions

virtual ~Portable ()
 Destructor.
 
virtual int getFactoryId () const =0
 
virtual int getClassId () const =0
 
virtual void writePortable (PortableWriter &writer) const =0
 Defines how this class will be written. More...
 
virtual void readPortable (PortableReader &reader)=0
 Defines how this class will be read. More...
 

Detailed Description

Classes that will be used with hazelcast data structures like IMap, IQueue etc should either inherit from one of the following classes : Portable , IdentifiedDataSerializable or it should be custom serializable.

For custom serializable see Serializer

Portable serialization that have the following advantages:

Note that: factoryId and classId is to the same class in find server side, hence they should be consistent with each other.

See also
IdentifiedDataSerializable

Member Function Documentation

virtual int hazelcast::client::serialization::Portable::getClassId ( ) const
pure virtual
Returns
class id
virtual int hazelcast::client::serialization::Portable::getFactoryId ( ) const
pure virtual
Returns
factory id
virtual void hazelcast::client::serialization::Portable::readPortable ( PortableReader reader)
pure virtual

Defines how this class will be read.

Parameters
readerPortableReader
virtual void hazelcast::client::serialization::Portable::writePortable ( PortableWriter writer) const
pure virtual

Defines how this class will be written.

Parameters
writerPortableWriter

The documentation for this class was generated from the following file: