Interface MessageRegistry
- All Known Implementing Classes:
AbstractMessageRegistry
,BGPMessageParserMock
@NonNullByDefault
public interface MessageRegistry
BGP Message codec registry, provides services to encode/decode messages.
-
Method Summary
Modifier and TypeMethodDescriptionorg.opendaylight.yangtools.binding.Notification
<?> parseMessage
(io.netty.buffer.ByteBuf bytes, @Nullable PeerSpecificParserConstraint constraint) Decode input buffer to BGP Message.void
serializeMessage
(org.opendaylight.yangtools.binding.Notification<?> message, io.netty.buffer.ByteBuf buffer) Encode input BGP Message to output buffer.
-
Method Details
-
parseMessage
org.opendaylight.yangtools.binding.Notification<?> parseMessage(io.netty.buffer.ByteBuf bytes, @Nullable PeerSpecificParserConstraint constraint) throws BGPDocumentedException, BGPParsingException Decode input buffer to BGP Message.- Parameters:
bytes
- Input buffer with encoded message.constraint
- Peer specific constraint.- Returns:
- Parsed BGP message.
- Throws:
BGPDocumentedException
BGPParsingException
-
serializeMessage
void serializeMessage(org.opendaylight.yangtools.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.
-