Class HyperionSerializer
This is a special Serializer that serializes and deserializes plain old CLR objects (POCOs).
Inherited Members
Namespace: Akka.Serialization
Assembly: Akka.Serialization.Hyperion.dll
Syntax
public class HyperionSerializer : Serializer
Constructors
| Edit this page View SourceHyperionSerializer(ExtendedActorSystem)
Initializes a new instance of the HyperionSerializer class.
Declaration
public HyperionSerializer(ExtendedActorSystem system)
Parameters
| Type | Name | Description |
|---|---|---|
| ExtendedActorSystem | system | The actor system to associate with this serializer. |
HyperionSerializer(ExtendedActorSystem, Config)
Initializes a new instance of the HyperionSerializer class.
Declaration
public HyperionSerializer(ExtendedActorSystem system, Config config)
Parameters
| Type | Name | Description |
|---|---|---|
| ExtendedActorSystem | system | The actor system to associate with this serializer. |
| Config | config | Configuration passed from related HOCON config path. |
HyperionSerializer(ExtendedActorSystem, HyperionSerializerSettings)
Initializes a new instance of the HyperionSerializer class.
Declaration
public HyperionSerializer(ExtendedActorSystem system, HyperionSerializerSettings settings)
Parameters
| Type | Name | Description |
|---|---|---|
| ExtendedActorSystem | system | The actor system to associate with this serializer. |
| HyperionSerializerSettings | settings | Serializer settings. |
Fields
| Edit this page View SourceSettings
Settings used for an underlying Hyperion serializer implementation.
Declaration
public readonly HyperionSerializerSettings Settings
Field Value
| Type | Description |
|---|---|
| HyperionSerializerSettings |
Properties
| Edit this page View SourceIdentifier
Completely unique value to identify this implementation of Serializer, used to optimize network traffic
Declaration
public override int Identifier { get; }
Property Value
| Type | Description |
|---|---|
| int |
Overrides
| Edit this page View SourceIncludeManifest
Returns whether this serializer needs a manifest in the fromBinary method
Declaration
public override bool IncludeManifest { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Overrides
Methods
| Edit this page View SourceDefaultConfiguration()
Returns a default configuration for Hyperion serializer.
Declaration
public static Config DefaultConfiguration()
Returns
| Type | Description |
|---|---|
| Config | TBD |
FromBinary(byte[], Type)
Deserializes a byte array into an object of type type.
Declaration
public override object FromBinary(byte[] bytes, Type type)
Parameters
| Type | Name | Description |
|---|---|---|
| byte[] | bytes | The array containing the serialized object |
| Type | type | The type of object contained in the array |
Returns
| Type | Description |
|---|---|
| object | The object contained in the array |
Overrides
| Edit this page View SourceToBinary(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 |
Edit this page