object Serialization

Source
Serialization.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Serialization
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. type ClassSerializer = (Class[_], Serializer)

    Tuple that represents mapping from Class to Serializer

  2. final case class Information(address: Address, system: ActorSystem) extends Product with Serializable

    Serialization information needed for serializing local actor refs, or if serializer library e.g.

    Serialization information needed for serializing local actor refs, or if serializer library e.g. custom serializer/deserializer in Jackson need access to the current ActorSystem.

  3. class Settings extends AnyRef

Value Members

  1. def getCurrentTransportInformation(): Information

    Gets the serialization information from a ThreadLocal that was assigned via Serialization#withTransportInformation.

    Gets the serialization information from a ThreadLocal that was assigned via Serialization#withTransportInformation. The information is needed for serializing local actor refs, or if serializer library e.g. custom serializer/deserializer in Jackson need access to the current ActorSystem.

    Exceptions thrown

    IllegalStateException if the information was not set

  2. def serializedActorPath(actorRef: ActorRef): String

    The serialized path of an actorRef, based on the current transport serialization information.

    The serialized path of an actorRef, based on the current transport serialization information. If there is no external address available in the given ActorRef then the systems default address will be used and that is retrieved from the ThreadLocal Serialization.Information that was set with Serialization#withTransportInformation.

  3. def withTransportInformation[T](system: ExtendedActorSystem)(f: () ⇒ T): T

    Sets serialization information in a ThreadLocal and runs f.

    Sets serialization information in a ThreadLocal and runs f. The information is needed for serializing local actor refs, or if serializer library e.g. custom serializer/deserializer in Jackson need access to the current ActorSystem. The current Information can be accessed within f via Serialization#getCurrentTransportInformation.

    Akka Remoting sets this value when serializing and deserializing messages, and when using the ordinary serialize and deserialize methods in Serialization the value is also set automatically.

    returns

    value returned by f