Package org.apache.pekko.remote
Class MessageSerializer$
java.lang.Object
org.apache.pekko.remote.MessageSerializer$
INTERNAL API
MessageSerializer is a helper for serializing and deserialize messages
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final MessageSerializer$Static reference to the singleton instance of this Scala object. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeserialize(ExtendedActorSystem system, WireFormats.SerializedMessage messageProtocol) Uses Pekko Serialization for the specified ActorSystem to transform the given MessageProtocol to a messagedeserializeForArtery(ExtendedActorSystem system, long originUid, Serialization serialization, int serializer, String classManifest, org.apache.pekko.remote.artery.EnvelopeBuffer envelope) serialize(ExtendedActorSystem system, Object message) Uses Pekko Serialization for the specified ActorSystem to transform the given message to a MessageProtocol ThrowsNotSerializableExceptionif serializer was not configured for the message type.voidserializeForArtery(Serialization serialization, OutboundEnvelope outboundEnvelope, HeaderBuilder headerBuilder, org.apache.pekko.remote.artery.EnvelopeBuffer envelope)
-
Field Details
-
MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Constructor Details
-
MessageSerializer$
public MessageSerializer$()
-
-
Method Details
-
deserialize
public Object deserialize(ExtendedActorSystem system, WireFormats.SerializedMessage messageProtocol) Uses Pekko Serialization for the specified ActorSystem to transform the given MessageProtocol to a message -
serialize
Uses Pekko Serialization for the specified ActorSystem to transform the given message to a MessageProtocol ThrowsNotSerializableExceptionif serializer was not configured for the message type. ThrowsMessageSerializer.SerializationExceptionif exception was thrown fromtoBinaryof the serializer. -
serializeForArtery
public void serializeForArtery(Serialization serialization, OutboundEnvelope outboundEnvelope, HeaderBuilder headerBuilder, org.apache.pekko.remote.artery.EnvelopeBuffer envelope) -
deserializeForArtery
public Object deserializeForArtery(ExtendedActorSystem system, long originUid, Serialization serialization, int serializer, String classManifest, org.apache.pekko.remote.artery.EnvelopeBuffer envelope)
-