Class BGPDispatcherImpl

    • Constructor Detail

      • BGPDispatcherImpl

        @Inject
        public BGPDispatcherImpl​(BGPExtensionConsumerContext extensions,
                                 io.netty.channel.EventLoopGroup bossGroup,
                                 io.netty.channel.EventLoopGroup workerGroup,
                                 BGPPeerRegistry bgpPeerRegistry)
    • Method Detail

      • close

        @PreDestroy
        public void close()
        Specified by:
        close in interface AutoCloseable
      • createReconnectingClient

        public io.netty.util.concurrent.Future<Void> createReconnectingClient​(InetSocketAddress remoteAddress,
                                                                              InetSocketAddress localAddress,
                                                                              int retryTimer,
                                                                              KeyMapping keys)
        Description copied from interface: BGPDispatcher
        Creates Reconnecting client.
        Specified by:
        createReconnectingClient in interface BGPDispatcher
        Parameters:
        remoteAddress - remote Peer Address
        localAddress - local Peer address
        retryTimer - Retry timer
        keys - for TCPMD5
        Returns:
        Future promising a client session
      • createServer

        public io.netty.channel.ChannelFuture createServer​(InetSocketAddress serverAddress)
        Description copied from interface: BGPDispatcher
        Create new BGP server to accept incoming bgp connections (bound to provided socket localAddress).
        Specified by:
        createServer in interface BGPDispatcher
        Parameters:
        serverAddress - Peer localAddress
        Returns:
        ChannelFuture promising a client session