Interface LabelRegistry

    • Method Detail

      • parseLabel

        LabelType parseLabel​(int ctype,
                             io.netty.buffer.ByteBuf buffer)
                      throws RSVPParsingException
        Finds parser for given label C-type in the registry. Delegates parsing to found parser.
        Parameters:
        ctype - label type, key in parser registry
        buffer - label wrapped in ByteBuf
        Returns:
        null if the parser for this label could not be found
        Throws:
        RSVPParsingException - if the parsing did not succeed
      • serializeLabel

        void serializeLabel​(boolean unidirectional,
                            boolean global,
                            LabelType label,
                            io.netty.buffer.ByteBuf buffer)
        Find serializer for given label. Delegates parsing to found serializer.
        Parameters:
        unidirectional - label common header flag
        global - label commom header flag
        label - to be parsed
        buffer - buffer where the serialized label will be parsed