Interface MessageRegistry
-
- All Known Implementing Classes:
AbstractMessageRegistry,BGPMessageParserMock
@NonNullByDefault public interface MessageRegistryBGP Message codec registry, provides services to encode/decode messages.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.opendaylight.yangtools.yang.binding.NotificationparseMessage(io.netty.buffer.ByteBuf bytes, @Nullable PeerSpecificParserConstraint constraint)Decode input buffer to BGP Message.voidserializeMessage(org.opendaylight.yangtools.yang.binding.Notification message, io.netty.buffer.ByteBuf buffer)Encode input BGP Message to output buffer.
-
-
-
Method Detail
-
parseMessage
org.opendaylight.yangtools.yang.binding.Notification parseMessage(io.netty.buffer.ByteBuf bytes, @Nullable PeerSpecificParserConstraint constraint) throws BGPDocumentedException, BGPParsingExceptionDecode input buffer to BGP Message.- Parameters:
bytes- Input buffer with encoded message.constraint- Peer specific constraint.- Returns:
- Parsed BGP message.
- Throws:
BGPDocumentedExceptionBGPParsingException
-
serializeMessage
void serializeMessage(org.opendaylight.yangtools.yang.binding.Notification message, io.netty.buffer.ByteBuf buffer)Encode input BGP Message to output buffer.- Parameters:
message- Input BGP Message to be serialized.buffer- Output buffer where message is to be written.
-
-