VMware VMware GemFire Native .NET Reference 10.4.3
Loading...
Searching...
No Matches
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.
 
void RegisterType (TypeFactoryMethod^ creationMethod, int32_t id)
 Register an instance factory method for a given type.
 

Properties

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

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