Class JavaSerializer$


  • public class JavaSerializer$
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static JavaSerializer$ MODULE$
      Static reference to the singleton instance of this Scala object.
    • Constructor Summary

      Constructors 
      Constructor Description
      JavaSerializer$()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      JavaSerializer.CurrentSystem currentSystem()
      This holds a reference to the current ActorSystem (the surrounding context) during serialization and deserialization.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • MODULE$

        public static final JavaSerializer$ MODULE$
        Static reference to the singleton instance of this Scala object.
    • Constructor Detail

      • JavaSerializer$

        public JavaSerializer$()
    • Method Detail

      • currentSystem

        public JavaSerializer.CurrentSystem 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)

        Returns:
        (undocumented)