Class AbstractInstructionSerializer<T extends Instruction>

    • Constructor Detail

      • AbstractInstructionSerializer

        public AbstractInstructionSerializer()
    • Method Detail

      • serialize

        public void serialize​(T input,
                              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 Instruction>
        Parameters:
        input - object to be serialized
        outBuffer - output buffer
      • serializeHeader

        public void serializeHeader​(T 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<T extends Instruction>
        Parameters:
        input - object whose headers should be serialized
        outBuffer - output buffer
      • getType

        protected abstract int getType()
        Get type.
        Returns:
        numeric representation of instruction type.
      • getLength

        protected abstract int getLength()
        Get length.
        Returns:
        instruction length.