VMware Tanzu GemFire Native .NET Reference 10.3.0
Apache::Geode::Client::TypeRegistry Class Reference

Registry for custom serializable types, both PDXSerializable and DataSerializable. More...

#include <TypeRegistry.hpp>

Public Member Functions

void RegisterPdxType (PdxTypeFactoryMethod^ creationMethod)
 Register an instance factory method for a given type. More...
 
void RegisterType (TypeFactoryMethod^ creationMethod, int32_t id)
 Register an instance factory method for a given type. More...
 

Properties

IPdxTypeMapperPdxTypeMapper [get, set]
 Register an PdxTypeMapper to map the local types to pdx types More...
 

Detailed Description

Registry for custom serializable types, both PDXSerializable and DataSerializable.

Member Function Documentation

◆ RegisterPdxType()

void Apache::Geode::Client::TypeRegistry::RegisterPdxType ( PdxTypeFactoryMethod creationMethod)

Register an instance factory method for a given type.

This should be used when registering types that implement IPdxSerializable.

Parameters
creationMethodthe creation function to register
Exceptions
IllegalArgumentExceptionif the method is null

◆ RegisterType()

void Apache::Geode::Client::TypeRegistry::RegisterType ( TypeFactoryMethod creationMethod,
int32_t  id 
)

Register an instance factory method for a given type.

This should be used when registering types that implement ISerializable.

Parameters
creationMethodthe creation function to register
Exceptions
IllegalArgumentExceptionif the method is null
IllegalStateExceptionif the typeId has already been registered, or there is an error in registering the type; check Utils::LastError for more information in the latter case.

Property Documentation

◆ PdxTypeMapper

IPdxTypeMapper^ Apache::Geode::Client::TypeRegistry::PdxTypeMapper
getset

Register an PdxTypeMapper to map the local types to pdx types


Apache Geode C++ Cache .NET API Documentation