Hazelcast C++ Client
Hazelcast C++ Client Library
hazelcast::client::serialization_config Class Reference

SerializationConfig is used to. More...

#include <serialization_config.h>

Public Member Functions

 serialization_config ()
 Constructor default value of version is zero.
 
int get_portable_version () 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...
 
serialization_configset_portable_version (int v)
 
std::shared_ptr< serialization::global_serializerget_global_serializer () const
 
serialization_configset_global_serializer (const std::shared_ptr< serialization::global_serializer > &global_serializer)
 
serialization_configset_byte_order (boost::endian::order byte_order)
 
boost::endian::order get_byte_order () const
 

Detailed Description

SerializationConfig is used to.

  • set version of portable classes in this client (
    See also
    portable_serializer)

Definition at line 38 of file serialization_config.h.

Member Function Documentation

◆ get_byte_order()

boost::endian::order hazelcast::client::serialization_config::get_byte_order ( ) const
Returns
the configured byte endian order

Definition at line 84 of file config.cpp.

84  {
85  return byte_order_;
86  }

◆ get_portable_version()

int hazelcast::client::serialization_config::get_portable_version ( ) 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

Definition at line 60 of file config.cpp.

60  {
61  return version_;
62  }

◆ set_byte_order()

serialization_config & hazelcast::client::serialization_config::set_byte_order ( boost::endian::order  byte_order)
Parameters
byte_orderthat the serialization will use
Returns
itself serialization_config

Definition at line 79 of file config.cpp.

79  {
80  byte_order_ = byte_order;
81  return *this;
82  }

◆ set_global_serializer()

serialization_config & hazelcast::client::serialization_config::set_global_serializer ( const std::shared_ptr< serialization::global_serializer > &  global_serializer)
Parameters
global_serializerthe serializer to be used when no other serialization can be found for an object
Returns
itself serialization_config

Definition at line 73 of file config.cpp.

74  {
75  global_serializer_ = global_serializer;
76  return *this;
77  }

◆ set_portable_version()

serialization_config & hazelcast::client::serialization_config::set_portable_version ( int  v)
Parameters
vThe default portable version to be used.
Returns
itself serialization_config

Definition at line 64 of file config.cpp.

64  {
65  this->version_ = v;
66  return *this;
67  }

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