Class AbstractActionSerializer

    • Constructor Detail

      • AbstractActionSerializer

        public AbstractActionSerializer()
    • Method Detail

      • serialize

        public 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 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
      • getType

        protected abstract int getType()
        Returns the numeric representation of action type.
      • getLength

        protected abstract int getLength()
        Returns the action length.