Class ClusterClientMessageSerializer
INTERNAL API.
Serializer used to translate all of the ClusterClient and ClusterClientReceptionist messages that can be passed back-and-forth between client and receptionist.
Inherited Members
Namespace: Akka.Cluster.Tools.Client.Serialization
Assembly: Akka.Cluster.Tools.dll
Syntax
public class ClusterClientMessageSerializer : SerializerWithStringManifest
Constructors
| Edit this page View SourceClusterClientMessageSerializer(ExtendedActorSystem)
Initializes a new instance of the ClusterClientMessageSerializer class.
Declaration
public ClusterClientMessageSerializer(ExtendedActorSystem system)
Parameters
Type | Name | Description |
---|---|---|
ExtendedActorSystem | system | The actor system to associate with this serializer. |
Methods
| Edit this page View SourceFromBinary(byte[], string)
Deserializes a byte array into an object using an optional manifest
(type hint).
Declaration
public override object FromBinary(byte[] bytes, string manifest)
Parameters
Type | Name | Description |
---|---|---|
byte[] | bytes | The array containing the serialized object |
string | manifest | The type hint used to deserialize the object contained in the array. |
Returns
Type | Description |
---|---|
object | The object contained in the array |
Overrides
Exceptions
Type | Condition |
---|---|
ArgumentException | This exception is thrown when the specified |
Manifest(object)
Returns the manifest (type hint) that will be provided in the FromBinary(byte[], string) method.
note
This method returns Empty if a manifest is not needed.
Declaration
public override string Manifest(object o)
Parameters
Type | Name | Description |
---|---|---|
object | o | The object for which the manifest is needed. |
Returns
Type | Description |
---|---|
string | The manifest needed for the deserialization of the specified |
Overrides
Exceptions
Type | Condition |
---|---|
ArgumentException | This exception is thrown when the specified |
ToBinary(object)
Serializes the given object into a byte array
Declaration
public override byte[] ToBinary(object obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj | The object to serialize |
Returns
Type | Description |
---|---|
byte[] | A byte array containing the serialized object |
Overrides
Exceptions
Type | Condition |
---|---|
ArgumentException | This exception is thrown when the specified |