CacheableObject Class |
Note: This API is now obsolete.
Namespace: GemStone.GemFire.Cache
The CacheableObject type exposes the following members.
Name | Description | |
---|---|---|
![]() | ClassId |
Returns the classId of the instance being serialized.
This is used by deserialization to determine what instance
type to create and deserialize into.
|
![]() | ObjectSize |
return the size of this object in bytes
|
![]() | Value |
Gets the object value.
|
Name | Description | |
---|---|---|
![]() ![]() | Create |
Static function to create a new instance from the given object.
|
![]() ![]() | CreateDeserializable |
Factory function to register this class.
|
![]() | Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | FromData |
Deserializes the [!:System.Object] using
[!:System.Runtime.Serialization.Formatters.Binary.BinaryFormatter] class.
|
![]() | GetHashCode | Serves as the default hash function. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | ToData |
Serializes this [!:System.Object] using
[!:System.Runtime.Serialization.Formatters.Binary.BinaryFormatter] class.
|
![]() | ToString | (Overrides ObjectToString.) |
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 IGFSerializable 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.