VMware Tanzu GemFire Native .NET Reference 10.2.7
|
An mutable generic System.Object wrapper that can serve as a distributable value for caching. More...
#include <CacheableObject.hpp>
Inherits Apache::Geode::Client::IDataSerializablePrimitive.
Public Member Functions | |
virtual String ^ | ToString () override |
Return a string representation of the object. More... | |
Static Public Member Functions | |
static CacheableObject ^ | Create (Object^ value) |
Static function to create a new instance from the given object. More... | |
static ISerializable ^ | CreateDeserializable () |
Factory function to register this class. More... | |
Properties | |
Object^ | Value [get] |
Gets the object value. More... | |
An mutable generic System.Object wrapper that can serve as a distributable value for caching.
This class can serialize any class which has either the [Serializable] attribute set or implements System.Runtime.Serialization.ISerializable interface. However, for better efficiency the latter should be avoided and the user should implement ../../ISerializable instead.
The user must keep in mind that the rules that apply to runtime serialization would be the rules that apply to this class. For the serialization will be carried out by serializing all the members (public/private/protected) of the class. Each of the contained classes should also have either the [Serializable] attribute set or implement ISerializable
interface.
|
inlinestatic |
Static function to create a new instance from the given object.
If the given object is null then this method returns null.
|
inlinestatic |
Factory function to register this class.
|
inlineoverridevirtual |
Return a string representation of the object.
Implements Apache::Geode::Client::ISerializable.
|
get |
Gets the object value.
The user can modify the object and the changes shall be reflected immediately in the local cache. For this change to be propagate to other members of the distributed system, the object needs to be put into the cache.