Package akka.remote

Class MessageSerializer


  • public class MessageSerializer
    extends java.lang.Object
    INTERNAL API

    MessageSerializer is a helper for serializing and deserialize messages

    • Constructor Detail

      • MessageSerializer

        public MessageSerializer()
    • Method Detail

      • deserialize

        public static java.lang.Object deserialize​(ExtendedActorSystem system,
                                                   WireFormats.SerializedMessage messageProtocol)
        Uses Akka Serialization for the specified ActorSystem to transform the given MessageProtocol to a message
        Parameters:
        system - (undocumented)
        messageProtocol - (undocumented)
        Returns:
        (undocumented)
      • serialize

        public static 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)
      • deserializeForArtery

        public static java.lang.Object deserializeForArtery​(ExtendedActorSystem system,
                                                            long originUid,
                                                            Serialization serialization,
                                                            int serializer,
                                                            java.lang.String classManifest,
                                                            EnvelopeBuffer envelope)