object Serialization
- Annotations
- @ccompatUsedUntil213()
- 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
-
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[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
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
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
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
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
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. -
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( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
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