Class AbstractActionSerializer

    • Constructor Detail

      • AbstractActionSerializer

        protected AbstractActionSerializer​(short type,
                                           short length)
    • Method Detail

      • serialize

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

        public final void serializeHeader​(Action input,
                                          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<Action>
        Parameters:
        input - object whose headers should be serialized
        outBuffer - output buffer
      • type

        protected final short type()
        Returns the numeric representation of action type.
        Returns:
        Numeric representation of action type.
      • serializeBody

        protected abstract void serializeBody​(Action input,
                                              io.netty.buffer.ByteBuf outBuffer)