Click or drag to resize
CacheableObject Class

Note: This API is now obsolete.

An mutable generic [!:System.Object] wrapper that can serve as a distributable value for caching.
Inheritance Hierarchy
SystemObject
  GemStone.GemFire.CacheCacheableObject

Namespace: GemStone.GemFire.Cache
Assembly: Gemstone.Gemfire.Cache (in Gemstone.Gemfire.Cache.dll) Version: 9.0.6.18
Syntax
[ObsoleteAttribute("Use classes and APIs from the GemStone.GemFire.Cache.Generic namespace")]
public class CacheableObject : IGFSerializable

The CacheableObject type exposes the following members.

Properties
  NameDescription
Public propertyClassId
Returns the classId of the instance being serialized. This is used by deserialization to determine what instance type to create and deserialize into.
Public propertyObjectSize
return the size of this object in bytes
Public propertyValue
Gets the object value.
Top
Methods
  NameDescription
Public methodStatic memberCreate
Static function to create a new instance from the given object.
Public methodStatic memberCreateDeserializable
Factory function to register this class.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodFromData
Deserializes the [!:System.Object] using [!:System.Runtime.Serialization.Formatters.Binary.BinaryFormatter] class.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToData
Serializes this [!:System.Object] using [!:System.Runtime.Serialization.Formatters.Binary.BinaryFormatter] class.
Public methodToString (Overrides ObjectToString.)
Top
Remarks

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.

See Also