Class PekkoPduProtobufCodec

java.lang.Object
org.apache.pekko.remote.transport.PekkoPduProtobufCodec

public class PekkoPduProtobufCodec extends Object
INTERNAL API
  • Constructor Details

    • PekkoPduProtobufCodec

      public PekkoPduProtobufCodec()
  • Method Details

    • constructMessage

      public static ByteString constructMessage(Address localAddress, ActorRef recipient, WireFormats.SerializedMessage serializedMessage, <any> senderOption, scala.Option<SeqNo> seqOption, scala.Option<Ack> ackOption)

      Opentelemetry Java Instrumentation relies on this method so avoid changing it. The agent writes the propagated context into the PDU here. See https://github.com/apache/pekko/issues/3472

    • constructMessage$default$5

      public static scala.Option<SeqNo> constructMessage$default$5()
    • constructMessage$default$6

      public static scala.Option<Ack> constructMessage$default$6()
    • constructPureAck

      public static ByteString constructPureAck(Ack ack)
    • constructPayload

      public static ByteString constructPayload(ByteString payload)
    • constructAssociate

      public static ByteString constructAssociate(HandshakeInfo info)
    • constructDisassociate

      public static ByteString constructDisassociate(AssociationHandle.DisassociateInfo info)
    • constructHeartbeat

      public static ByteString constructHeartbeat()
    • decodePdu

      public static PekkoPduCodec.PekkoPdu decodePdu(ByteString raw)
    • decodeMessage

      public static scala.Tuple2<scala.Option<Ack>,scala.Option<PekkoPduCodec.Message>> decodeMessage(ByteString raw, org.apache.pekko.remote.RemoteActorRefProvider provider, Address localAddress)

      Opentelemetry Java Instrumentation relies on this method so avoid changing it. The agent reads the propagated context out of the PDU here. See https://github.com/apache/pekko/issues/3472

    • encodePdu

      public static ByteString encodePdu(PekkoPduCodec.PekkoPdu pdu)