Package org.apache.pekko.serialization
Class JavaSerializer$
java.lang.Object
org.apache.pekko.serialization.JavaSerializer$
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JavaSerializer$Static reference to the singleton instance of this Scala object. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThis holds a reference to the current ActorSystem (the surrounding context) during serialization and deserialization.
-
Field Details
-
MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Constructor Details
-
JavaSerializer$
public JavaSerializer$()
-
-
Method Details
-
currentSystem
This holds a reference to the current ActorSystem (the surrounding context) during serialization and deserialization.If you are using Serializers yourself, outside of SerializationExtension, you'll need to surround the serialization/deserialization with:
JavaSerializer.currentSystem.withValue(system) { ...code... }
or
JavaSerializer.currentSystem.withValue(system, callable)
-