Class AbstractMessageSerializer<T extends OfHeader>

    • Constructor Detail

      • AbstractMessageSerializer

        public AbstractMessageSerializer()
    • Method Detail

      • serialize

        public void serialize​(T message,
                              io.netty.buffer.ByteBuf outBuffer)
        Description copied from interface: OFSerializer
        Transforms POJO/DTO into byte message (ByteBuf).
        Specified by:
        serialize in interface OFSerializer<T extends OfHeader>
        Parameters:
        message - object to be serialized
        outBuffer - output buffer
      • serializeHeader

        public void serializeHeader​(T message,
                                    io.netty.buffer.ByteBuf outBuffer)
        Description copied from interface: HeaderSerializer
        Serializes object headers (e.g. for Multipart message - Table Features).
        Specified by:
        serializeHeader in interface HeaderSerializer<T extends OfHeader>
        Parameters:
        message - object whose headers should be serialized
        outBuffer - output buffer
      • getMessageType

        protected abstract byte getMessageType()
        Message type getter.
        Returns:
        of message type