Hazelcast C++ Client
 All Classes Functions Variables Enumerations Pages
Public Member Functions | List of all members
hazelcast::client::SerializationConfig Class Reference

SerializationConfig is used to. More...

#include <SerializationConfig.h>

Public Member Functions

 SerializationConfig ()
 Constructor default value of version is zero.
 
int getPortableVersion () const
 Portable version will be used to differentiate two same class that have changes on it , like adding/removing field or changing a type of a field. More...
 
SerializationConfigsetPortableVersion (int portableVersion)
 
std::vector< boost::shared_ptr
< serialization::SerializerBase >
> const & 
getSerializers () const
 
SerializationConfigregisterSerializer (boost::shared_ptr< serialization::SerializerBase > serializer)
 One can implement custom serializers other than Portable and IdentifiedDataSerializable to be used in serialization of user objects. More...
 

Detailed Description

SerializationConfig is used to.

Member Function Documentation

int hazelcast::client::SerializationConfig::getPortableVersion ( ) const

Portable version will be used to differentiate two same class that have changes on it , like adding/removing field or changing a type of a field.

Returns
version of portable classes that will be created by this client
std::vector< boost::shared_ptr< serialization::SerializerBase > > const & hazelcast::client::SerializationConfig::getSerializers ( ) const
Returns
vector of registered custom serializers
SerializationConfig & hazelcast::client::SerializationConfig::registerSerializer ( boost::shared_ptr< serialization::SerializerBase serializer)

One can implement custom serializers other than Portable and IdentifiedDataSerializable to be used in serialization of user objects.

For details

See Also
Serializer
Parameters
serializercustom serializer to be registered
SerializationConfig & hazelcast::client::SerializationConfig::setPortableVersion ( int  portableVersion)
Parameters
portableVersion
Returns
itself SerializationConfig

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