VMware GemFire Native Client .NET Framework API Reference
|
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 | |
| IPdxTypeMapper^ | PdxTypeMapper [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
-
creationMethod the creation function to register
- Exceptions
-
IllegalArgumentException if 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
-
creationMethod the creation function to register
- Exceptions
-
IllegalArgumentException if the method is null IllegalStateException if the typeId has already been registered, or there is an error in registering the type; check Utils::LastErrorfor more information in the latter case.
Property Documentation
◆ PdxTypeMapper
|
getset |
Register an PdxTypeMapper to map the local types to pdx types.
Apache Geode C++ Cache .NET API Documentation