2 * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.protocol.bgp.rib.impl.spi;
10 import io.netty.util.concurrent.Future;
11 import java.net.InetSocketAddress;
12 import org.opendaylight.bgpcep.tcpmd5.KeyMapping;
13 import org.opendaylight.protocol.bgp.parser.BGPSession;
14 import org.opendaylight.protocol.framework.ReconnectStrategy;
15 import org.opendaylight.protocol.framework.ReconnectStrategyFactory;
16 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev100924.AsNumber;
19 * Dispatcher class for creating BGP clients.
21 public interface BGPDispatcher extends BGPServerDispatcher {
26 * @param address Peer address
27 * @param peerRegistry BGP peer registry
28 * @return Future promising a client session
30 Future<? extends BGPSession> createClient(InetSocketAddress address, AsNumber remoteAs,
31 BGPPeerRegistry peerRegistry, ReconnectStrategy strategy);
33 Future<Void> createReconnectingClient(InetSocketAddress address, AsNumber remoteAs,
34 BGPPeerRegistry peerRegistry, ReconnectStrategyFactory connectStrategyFactory,
35 ReconnectStrategyFactory reestablishStrategyFactory);
37 Future<Void> createReconnectingClient(InetSocketAddress address, AsNumber remoteAs,
38 BGPPeerRegistry peerRegistry, ReconnectStrategyFactory connectStrategyFactory,
39 ReconnectStrategyFactory reestablishStrategyFactory, KeyMapping keys);