trait BaseSerializer extends Serializer
Base serializer trait with serialization identifiers configuration contract,
when globally unique serialization identifier is configured in the reference.conf
.
- Source
- Serializer.scala
- Alphabetic
- By Inheritance
- BaseSerializer
- Serializer
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
abstract
def
fromBinary(bytes: Array[Byte], manifest: Option[Class[_]]): AnyRef
Produces an object from an array of bytes, with an optional type-hint; the class should be loaded using ActorSystem.dynamicAccess.
Produces an object from an array of bytes, with an optional type-hint; the class should be loaded using ActorSystem.dynamicAccess.
- Definition Classes
- Serializer
-
abstract
def
includeManifest: Boolean
Returns whether this serializer needs a manifest in the fromBinary method
Returns whether this serializer needs a manifest in the fromBinary method
- Definition Classes
- Serializer
-
abstract
def
system: ExtendedActorSystem
Actor system which is required by most serializer implementations.
-
abstract
def
toBinary(o: AnyRef): Array[Byte]
Serializes the given object into an Array of Byte
Serializes the given object into an Array of Byte
- Definition Classes
- Serializer
Concrete Value Members
-
final
val
SerializationIdentifiers: String("akka.actor.serialization-identifiers")
Configuration namespace of serialization identifiers in the
reference.conf
.Configuration namespace of serialization identifiers in the
reference.conf
.Each serializer implementation must have an entry in the following format:
akka.actor.serialization-identifiers."FQCN" = ID
whereFQCN
is fully qualified class name of the serializer implementation andID
is globally unique serializer identifier number. -
final
def
fromBinary(bytes: Array[Byte], clazz: Class[_]): AnyRef
Java API: deserialize with type hint
Java API: deserialize with type hint
- Definition Classes
- Serializer
-
final
def
fromBinary(bytes: Array[Byte]): AnyRef
Java API: deserialize without type hint
Java API: deserialize without type hint
- Definition Classes
- Serializer
-
val
identifier: Int
Globally unique serialization identifier configured in the
reference.conf
.Globally unique serialization identifier configured in the
reference.conf
.- Definition Classes
- BaseSerializer → Serializer