class JavaSerializer extends BaseSerializer
This Serializer uses standard Java Serialization
- Source
- Serializer.scala
- Alphabetic
- By Inheritance
- JavaSerializer
- BaseSerializer
- Serializer
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Instance Constructors
- new JavaSerializer(system: ExtendedActorSystem)
-
new
JavaSerializer()
- Annotations
- @deprecated
- Deprecated
(Since version 2.4) Use constructor with ExtendedActorSystem
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.- Definition Classes
- BaseSerializer
-
def
fromBinary(bytes: Array[Byte], clazz: 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
- JavaSerializer → Serializer
-
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
- Definition Classes
- JavaSerializer → BaseSerializer → Serializer
-
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
- JavaSerializer → Serializer
-
val
system: ExtendedActorSystem
- Definition Classes
- JavaSerializer → BaseSerializer
-
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
- JavaSerializer → Serializer