Class PekkoPduProtobufCodec$
java.lang.Object
org.apache.pekko.remote.transport.PekkoPduProtobufCodec$
- All Implemented Interfaces:
PekkoPduCodec
INTERNAL API
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.pekko.remote.transport.PekkoPduCodec
PekkoPduCodec.Associate, PekkoPduCodec.Associate$, PekkoPduCodec.Disassociate, PekkoPduCodec.Disassociate$, PekkoPduCodec.Heartbeat$, PekkoPduCodec.Message, PekkoPduCodec.Message$, PekkoPduCodec.Payload, PekkoPduCodec.Payload$, PekkoPduCodec.PekkoPdu -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PekkoPduProtobufCodec$Static reference to the singleton instance of this Scala object. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconstructMessage(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.scala.Option<SeqNo>scala.Option<Ack>constructPayload(ByteString payload) constructPureAck(Ack ack) 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.decodePdu(ByteString raw) Returns apekko.remote.transport.PekkoPduCodec.PekkoPduinstance that represents the PDU contained in the raw ByteString.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.pekko.remote.transport.PekkoPduCodec
encodePdu
-
Field Details
-
MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Constructor Details
-
PekkoPduProtobufCodec$
public PekkoPduProtobufCodec$()
-
-
Method Details
-
constructMessage
public 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
- Specified by:
constructMessagein interfacePekkoPduCodec
-
constructMessage$default$5
- Specified by:
constructMessage$default$5in interfacePekkoPduCodec
-
constructMessage$default$6
- Specified by:
constructMessage$default$6in interfacePekkoPduCodec
-
constructPureAck
- Specified by:
constructPureAckin interfacePekkoPduCodec
-
constructPayload
- Specified by:
constructPayloadin interfacePekkoPduCodec
-
constructAssociate
- Specified by:
constructAssociatein interfacePekkoPduCodec
-
constructDisassociate
- Specified by:
constructDisassociatein interfacePekkoPduCodec
-
constructHeartbeat
- Specified by:
constructHeartbeatin interfacePekkoPduCodec
-
decodePdu
Description copied from interface:PekkoPduCodecReturns apekko.remote.transport.PekkoPduCodec.PekkoPduinstance that represents the PDU contained in the raw ByteString.- Specified by:
decodePduin interfacePekkoPduCodec- Parameters:
raw- Encoded raw byte representation of a Pekko PDU- Returns:
- Case class representation of the decoded PDU that can be used in a match statement
-
decodeMessage
public 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
- Specified by:
decodeMessagein interfacePekkoPduCodec
-