Package akka.serialization
Class Serialization$
- java.lang.Object
-
- akka.serialization.Serialization$
-
public class Serialization$ extends java.lang.Object
Tuple that represents mapping from Class to Serializer
-
-
Field Summary
Fields Modifier and Type Field Description static Serialization$
MODULE$
Static reference to the singleton instance of this Scala object.
-
Constructor Summary
Constructors Constructor Description Serialization$()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description scala.util.DynamicVariable<Serialization.Information>
currentTransportInformation()
INTERNAL API: This holds a reference to the current transport serialization information used for serializing local actor refs, or if serializer library e.g.Serialization.Information
getCurrentTransportInformation()
Gets the serialization information from aThreadLocal
that was assigned viaSerialization.withTransportInformation(akka.actor.ExtendedActorSystem, scala.Function0<T>)
.java.lang.String
serializedActorPath(ActorRef actorRef)
<T> T
withTransportInformation(ExtendedActorSystem system, scala.Function0<T> f)
-
-
-
Field Detail
-
MODULE$
public static final Serialization$ MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Method Detail
-
currentTransportInformation
public scala.util.DynamicVariable<Serialization.Information> currentTransportInformation()
INTERNAL API: This holds a reference to the current transport serialization information used for serializing local actor refs, or if serializer library e.g. custom serializer/deserializer in Jackson need access to the currentActorSystem
.- Returns:
- (undocumented)
-
serializedActorPath
public java.lang.String serializedActorPath(ActorRef actorRef)
-
withTransportInformation
public <T> T withTransportInformation(ExtendedActorSystem system, scala.Function0<T> f)
-
getCurrentTransportInformation
public Serialization.Information getCurrentTransportInformation()
Gets the serialization information from aThreadLocal
that was assigned viaSerialization.withTransportInformation(akka.actor.ExtendedActorSystem, scala.Function0<T>)
. 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
.- Returns:
- (undocumented)
- Throws:
java.lang.IllegalStateException
- if the information was not set
-
-