akka

serialization

package serialization

Content Hierarchy Learn more about scaladoc diagrams
Visibility
  1. Public
  2. All

Type Members

  1. class ByteArraySerializer extends Serializer

    This is a special Serializer that Serializes and deserializes byte arrays only, (just returns the byte array unchanged/uncopied)

  2. abstract class JSerializer extends Serializer

    Java API for creating a Serializer: make sure to include a constructor which takes exactly one argument of type akka.actor.ExtendedActorSystem, because that is the preferred constructor which will be invoked when reflectively instantiating the JSerializer (also possible with empty constructor).

  3. class JavaSerializer extends Serializer

    This Serializer uses standard Java Serialization

  4. class NullSerializer extends Serializer

    This is a special Serializer that Serializes and deserializes nulls only

  5. class Serialization extends Extension

    Serialization module.

    Serialization module. Contains methods for serialization and deserialization as well as locating a Serializer for a particular class as defined in the mapping in the configuration.

  6. trait Serializer extends AnyRef

    A Serializer represents a bimap between an object and an array of bytes representing that object.

    A Serializer represents a bimap between an object and an array of bytes representing that object.

    Serializers are loaded using reflection during akka.actor.ActorSystem start-up, where two constructors are tried in order:

    • taking exactly one argument of type akka.actor.ExtendedActorSystem; this should be the preferred one because all reflective loading of classes during deserialization should use ExtendedActorSystem.dynamicAccess (see akka.actor.DynamicAccess), and
    • without arguments, which is only an option if the serializer does not load classes using reflection.

    Be sure to always use the PropertyManager for loading classes! This is necessary to avoid strange match errors and inequalities which arise from different class loaders loading the same class.

Value Members

  1. object JavaSerializer

  2. object NullSerializer extends NullSerializer

  3. object Serialization

  4. object SerializationExtension extends ExtensionId[Serialization] with ExtensionIdProvider

    SerializationExtension is an Akka Extension to interact with the Serialization that is built into Akka

Ungrouped