import org.opendaylight.yangtools.yang.binding.Notification;
/**
- * BGP Message codec registry, provides services
- * to encode/decode messages.
+ * BGP Message codec registry, provides services to encode/decode messages.
*/
public interface MessageRegistry {
/**
* @param bytes Input buffer with encoded message.
* @param constraint Peer specific constraint.
* @return Parsed BGP message.
- * @throws BGPDocumentedException
- * @throws BGPParsingException
*/
@Nonnull Notification parseMessage(@Nonnull ByteBuf bytes, @Nullable PeerSpecificParserConstraint constraint)
throws BGPDocumentedException, BGPParsingException;
* @param buffer Output buffer where message is to be written.
*/
void serializeMessage(@Nonnull Notification message, @Nonnull ByteBuf buffer);
-
}