Interface LabelRegistry
-
- All Known Implementing Classes:
SimpleLabelRegistry
public interface LabelRegistry
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description LabelType
parseLabel(int ctype, io.netty.buffer.ByteBuf buffer)
Finds parser for given label C-type in the registry.void
serializeLabel(boolean unidirectional, boolean global, LabelType label, io.netty.buffer.ByteBuf buffer)
Find serializer for given label.
-
-
-
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 registrybuffer
- 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 flagglobal
- label commom header flaglabel
- to be parsedbuffer
- buffer where the serialized label will be parsed
-
-