IIdentifiedDataSerializable Interface
Namespace: Hazelcast.Serialization
Assembly: Hazelcast.Net.dll
Defines the interface that classes of objects can implement to take control of their own serialization.
public interface IIdentifiedDataSerializable
Remarks
Classes that implement IIdentifiedDataSerializable rely on a declared factory to create instances, and deserialize fields, thus avoiding the costs otherwise associated with reflection.
Properties
| Name | Description |
|---|---|
| ClassId | Gets the identifier of the class. |
| FactoryId | Gets the identifier of the IDataSerializableFactory that can create instances of the class. |
Methods
| Name | Description |
|---|---|
| ReadData(IObjectDataInput) | Deserializes the object by reading from an IObjectDataInput. |
| WriteData(IObjectDataOutput) | Serializes the object by writing to an IObjectDataOutput. |