Interface AttributeRegistry
@NonNullByDefault
public interface AttributeRegistry
Attribute serializer/deserializer registry, exposing the capability to parse BGP attributes as a whole.
- 
Method Summary
Modifier and TypeMethodDescriptionparseAttributes(io.netty.buffer.ByteBuf buffer, @Nullable PeerSpecificParserConstraint constraints) Parse BGP Attribute from buffer.voidserializeAttribute(Attributes attribute, io.netty.buffer.ByteBuf byteAggregator) Serialize BGP Attribute to buffer. 
- 
Method Details
- 
parseAttributes
ParsedAttributes parseAttributes(io.netty.buffer.ByteBuf buffer, @Nullable PeerSpecificParserConstraint constraints) throws BGPDocumentedException, BGPParsingException Parse BGP Attribute from buffer.- Parameters:
 buffer- Input buffer.constraints- Peer specific constraint.- Returns:
 - Decoded BGP Attribute.
 - Throws:
 BGPDocumentedException- when an unrecoverable error occurs, which is documented viaBGPErrorBGPParsingException- when a general unrecoverable parsing error occurs
 - 
serializeAttribute
Serialize BGP Attribute to buffer.- Parameters:
 attribute- Input BGP Attribute.byteAggregator- Output buffer.
 
 -