object Serialization
- Source
- Serialization.scala
- Alphabetic
- By Inheritance
- Serialization
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
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
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- 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 currentActorSystem
.- Exceptions thrown
IllegalStateException
if the information was not set
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- 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 ThreadLocalSerialization.Information
that was set with Serialization#withTransportInformation. - final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- def withTransportInformation[T](system: ExtendedActorSystem)(f: () => T): T
Sets serialization information in a
ThreadLocal
and runsf
.Sets serialization information in a
ThreadLocal
and 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 withinf
via Serialization#getCurrentTransportInformation.Akka Remoting sets this value when serializing and deserializing messages, and when using the ordinary
serialize
anddeserialize
methods in Serialization the value is also set automatically.- returns
value returned by
f