Package akka.remote

Class MessageSerializer$


  • public class MessageSerializer$
    extends java.lang.Object
    Uses Akka Serialization for the specified ActorSystem to transform the given MessageProtocol to a message
    • Field Detail

      • MODULE$

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

      • MessageSerializer$

        public MessageSerializer$()
    • Method Detail

      • serialize

        public WireFormats.SerializedMessage serialize​(ExtendedActorSystem system,
                                                       java.lang.Object message)
        Uses Akka Serialization for the specified ActorSystem to transform the given message to a MessageProtocol Throws NotSerializableException if serializer was not configured for the message type. Throws MessageSerializer.SerializationException if exception was thrown from toBinary of the serializer.
        Parameters:
        system - (undocumented)
        message - (undocumented)
        Returns:
        (undocumented)