Interface MessageRegistry

  • All Known Implementing Classes:
    AbstractMessageRegistry

    @NonNullByDefault
    public interface MessageRegistry
    BGP 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.Notification parseMessage​(io.netty.buffer.ByteBuf bytes, @Nullable PeerSpecificParserConstraint constraint)
      Decode input buffer to BGP Message.
      void serializeMessage​(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 org.opendaylight.protocol.bgp.parser.BGPDocumentedException,
                                                                          org.opendaylight.protocol.bgp.parser.BGPParsingException
        Decode input buffer to BGP Message.
        Parameters:
        bytes - Input buffer with encoded message.
        constraint - Peer specific constraint.
        Returns:
        Parsed BGP message.
        Throws:
        org.opendaylight.protocol.bgp.parser.BGPDocumentedException
        org.opendaylight.protocol.bgp.parser.BGPParsingException
      • 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.