object Serialization
- Source
- Serialization.scala
- Alphabetic
- By Inheritance
- Serialization
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
type
ClassSerializer = (Class[_], Serializer)
Tuple that represents mapping from Class to Serializer
-
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. - class Settings extends AnyRef
Value Members
-
def
getCurrentTransportInformation(): Information
Gets the serialization information from a
ThreadLocalthat was assigned via Serialization#withTransportInformation.Gets the serialization information from a
ThreadLocalthat 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 currentActorSystem.- Exceptions thrown
IllegalStateExceptionif the information was not set
-
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
ActorRefthen the systems default address will be used and that is retrieved from the ThreadLocalSerialization.Informationthat was set with Serialization#withTransportInformation. -
def
withTransportInformation[T](system: ExtendedActorSystem)(f: () ⇒ T): T
Sets serialization information in a
ThreadLocaland runsf.Sets serialization information in a
ThreadLocaland runsf. The information is needed for serializing local actor refs, or if serializer library e.g. custom serializer/deserializer in Jackson need access to the currentActorSystem. The current Information can be accessed withinfvia Serialization#getCurrentTransportInformation.Akka Remoting sets this value when serializing and deserializing messages, and when using the ordinary
serializeanddeserializemethods in Serialization the value is also set automatically.- returns
value returned by
f