Class ClusterShardingMessageSerializer
INTERNAL API: Protobuf serializer of Cluster.Sharding messages.
Inherited Members
Namespace: Akka.Cluster.Sharding.Serialization
Assembly: Akka.Cluster.Sharding.dll
Syntax
public class ClusterShardingMessageSerializer : SerializerWithStringManifest
Constructors
| Improve this Doc View SourceClusterShardingMessageSerializer(ExtendedActorSystem)
Initializes a new instance of the ClusterShardingMessageSerializer class.
Declaration
public ClusterShardingMessageSerializer(ExtendedActorSystem system)
Parameters
Type | Name | Description |
---|---|---|
ExtendedActorSystem | system | The actor system to associate with this serializer. |
Methods
| Improve this Doc 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.
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 |