Hazelcast C++ Client
|
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... | |
SerializationConfig & | setPortableVersion (int portableVersion) |
std::vector< boost::shared_ptr< serialization::SerializerBase > > const & | getSerializers () const |
SerializationConfig & | registerSerializer (boost::shared_ptr< serialization::SerializerBase > serializer) |
SerializationConfig & | registerSerializer (boost::shared_ptr< serialization::StreamSerializer > serializer) |
One can implement custom serializers other than Portable and IdentifiedDataSerializable to be used in serialization of user objects. More... | |
SerializationConfig & | addDataSerializableFactory (int32_t factoryId, boost::shared_ptr< serialization::DataSerializableFactory > dataSerializableFactory) |
SerializationConfig & | addPortableFactory (int32_t factoryId, boost::shared_ptr< serialization::PortableFactory > portableFactory) |
const std::map< int32_t, boost::shared_ptr< serialization::DataSerializableFactory > > & | getDataSerializableFactories () const |
const std::map< int32_t, boost::shared_ptr< serialization::PortableFactory > > & | getPortableFactories () const |
SerializationConfig & | setGlobalSerializer (const boost::shared_ptr< serialization::StreamSerializer > &serializer) |
If no other serializer exists for a received binary data type id, then this registered serializer will be utilized. More... | |
const boost::shared_ptr< serialization::StreamSerializer > & | getGlobalSerializer () const |
SerializationConfig is used to.
SerializationConfig & hazelcast::client::SerializationConfig::addDataSerializableFactory | ( | int32_t | factoryId, |
boost::shared_ptr< serialization::DataSerializableFactory > | dataSerializableFactory | ||
) |
factoryId | factory ID of DataSerializableFactory to be registered |
dataSerializableFactory | DataSerializableFactory object to be registered |
SerializationConfig & hazelcast::client::SerializationConfig::addPortableFactory | ( | int32_t | factoryId, |
boost::shared_ptr< serialization::PortableFactory > | portableFactory | ||
) |
factoryId | factory ID of portableFactory to be registered |
portableFactory | portableFactory object to be registered |
const boost::shared_ptr< serialization::StreamSerializer > & hazelcast::client::SerializationConfig::getGlobalSerializer | ( | ) | const |
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.
std::vector< boost::shared_ptr< serialization::SerializerBase > > const & hazelcast::client::SerializationConfig::getSerializers | ( | ) | const |
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
serializer | custom serializer to be registered |
SerializationConfig & hazelcast::client::SerializationConfig::registerSerializer | ( | boost::shared_ptr< serialization::StreamSerializer > | serializer | ) |
One can implement custom serializers other than Portable and IdentifiedDataSerializable to be used in serialization of user objects.
For details
serializer | custom serializer to be registered |
SerializationConfig & hazelcast::client::SerializationConfig::setGlobalSerializer | ( | const boost::shared_ptr< serialization::StreamSerializer > & | serializer | ) |
If no other serializer exists for a received binary data type id, then this registered serializer will be utilized.
serializer | The global serializer that needs to be registered. |
SerializationConfig & hazelcast::client::SerializationConfig::setPortableVersion | ( | int | portableVersion | ) |
portableVersion |