Use reconnect strategy
[bgpcep.git] / bgp / rib-impl / src / main / java / org / opendaylight / protocol / bgp / rib / impl / spi / BGPDispatcher.java
index 433bfbafd046c9b76d516ad8811a10a2a8eee38b..9446f4af92b63cb6e69fc97fbff6a926f7cde001 100644 (file)
@@ -14,6 +14,7 @@ import java.net.InetSocketAddress;
 import org.opendaylight.protocol.bgp.parser.BGPSession;
 import org.opendaylight.protocol.bgp.parser.BGPSessionListener;
 import org.opendaylight.protocol.framework.ReconnectStrategy;
+import org.opendaylight.protocol.framework.ReconnectStrategyFactory;
 
 /**
  * Dispatcher class for creating BGP clients.
@@ -29,4 +30,7 @@ public interface BGPDispatcher {
         */
        Future<? extends BGPSession> createClient(InetSocketAddress address, BGPSessionPreferences preferences, BGPSessionListener listener,
                        final ReconnectStrategy strategy);
+
+       Future<Void> createReconnectingClient(InetSocketAddress address, BGPSessionPreferences preferences, BGPSessionListener listener,
+                       ReconnectStrategyFactory connectStrategyFactory, final ReconnectStrategy reestablishStrategy);
 }