Interface PekkoPduCodec

  • All Known Implementing Classes:
    PekkoPduProtobufCodec$

    public interface PekkoPduCodec
    INTERNAL API

    A Codec that is able to convert Pekko PDUs (Protocol Data Units) from and to pekko.util.ByteStrings.

    • Method Detail

      • decodePdu

        PekkoPduCodec.PekkoPdu decodePdu​(ByteString raw)
        Returns an pekko.remote.transport.PekkoPduCodec.PekkoPdu instance that represents the PDU contained in the raw ByteString.

        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
      • encodePdu

        ByteString encodePdu​(PekkoPduCodec.PekkoPdu pdu)
        Takes an pekko.remote.transport.PekkoPduCodec.PekkoPdu representation of a Pekko PDU and returns its encoded form as a pekko.util.ByteString.

        For the same effect the constructXXX methods might be called directly, taking method parameters instead of the pekko.remote.transport.PekkoPduCodec.PekkoPdu final case classes.

        Parameters:
        pdu - The Pekko Protocol Data Unit to be encoded
        Returns:
        Encoded form as raw bytes
      • constructHeartbeat

        ByteString constructHeartbeat()
      • constructMessage$default$5

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

        scala.Option<Ack> constructMessage$default$6()