Interface Message

    • Method Detail

      • encode

        NetworkBuffer encode​(io.netty.buffer.ByteBuf buf)
        Serializes this object by writing into the given ByteBuf.
        Parameters:
        buf - ByteBuf the header buffer, if use zero-copy. Otherwise it will contain header and body.
        Returns:
        NetworkBuffer body buffer, if use zero-copy
      • type

        MessageType type()
        Used to identify this message type.
      • hasBody

        boolean hasBody()
        Whether to include the body of the message in the same frame as the message.
      • sequenceNumber

        int sequenceNumber()
        The message sequence number
      • partition

        int partition()
        The partition id
      • release

        void release()
        Release the message