Interface RROSubobjectRegistry

    • Method Detail

      • parseSubobject

        SubobjectContainer parseSubobject​(int type,
                                          io.netty.buffer.ByteBuf buffer)
                                   throws RSVPParsingException
        Finds parser for given subobject type in the registry. Delegates parsing to found parser.
        Parameters:
        type - subobject type, key in parser registry
        buffer - subobject wrapped in ByteBuf
        Returns:
        null if the parser for this subobject could not be found otherwise returns parser
        Throws:
        RSVPParsingException - if the parsing did not succeed
      • serializeSubobject

        void serializeSubobject​(SubobjectContainer subobject,
                                io.netty.buffer.ByteBuf buffer)
        Find serializer for given subobject. Delegates parsing to found serializer.
        Parameters:
        subobject - to be parsed
        buffer - buffer where the serialized subobject will be parsed