VMware Tanzu GemFire Native C++ Reference
10.1.5
|
This base class is the superclass of all user objects in the cache that can be serialized. More...
Inherited by apache::geode::client::CacheableKey [virtual]
, apache::geode::client::DataSerializable [virtual]
, apache::geode::client::PdxSerializable [virtual]
, and apache::geode::client::UserFunctionExecutionException.
Public Member Functions | |
virtual size_t | objectSize () const |
return the size in bytes of the instance being serialized. More... | |
virtual std::string | toString () const |
Display this object as 'string', which depends on the implementation in the subclasses. More... | |
Static Public Member Functions | |
template<class _T > | |
static std::shared_ptr< Serializable > | create (_T value) |
Factory method that creates the Serializable object that matches the type of value. More... | |
This base class is the superclass of all user objects in the cache that can be serialized.
|
static |
Factory method that creates the Serializable object that matches the type of value.
For user defined derivations of Serializable, the method apache::geode::client::Serializable::create may be overloaded.
|
virtual |
return the size in bytes of the instance being serialized.
This is used to determine whether the cache is using up more physical memory than it has been configured to use. The method can return zero if the user does not require the ability to control cache memory utilization. Note that you must implement this only if you use the HeapLRU feature.
Reimplemented in apache::geode::client::PdxInstance, apache::geode::client::CacheableString, apache::geode::client::CacheableEnum, and apache::geode::client::CacheableDate.
|
virtual |
Display this object as 'string', which depends on the implementation in the subclasses.
The default implementation renders the classname.
Reimplemented in apache::geode::client::PdxInstance, apache::geode::client::UserFunctionExecutionException, apache::geode::client::PdxWrapper, apache::geode::client::PdxSerializable, apache::geode::client::CacheableString, apache::geode::client::CacheableEnum, and apache::geode::client::CacheableDate.