BGPDispatcher should not be tied to BGPSessionImpl 61/2761/1
authorRobert Varga <rovarga@cisco.com>
Fri, 15 Nov 2013 06:31:10 +0000 (07:31 +0100)
committerRobert Varga <rovarga@cisco.com>
Fri, 15 Nov 2013 06:31:10 +0000 (07:31 +0100)
Change-Id: Id56b93821d321b02967ea403f6186678c57a81b4
Signed-off-by: Robert Varga <rovarga@cisco.com>
bgp/rib-impl/src/main/java/org/opendaylight/protocol/bgp/rib/impl/spi/BGPDispatcher.java

index 17e6b3fde757510c244d013bba66b7c6f92f0d5b..433bfbafd046c9b76d516ad8811a10a2a8eee38b 100644 (file)
@@ -11,8 +11,8 @@ import io.netty.util.concurrent.Future;
 
 import java.net.InetSocketAddress;
 
+import org.opendaylight.protocol.bgp.parser.BGPSession;
 import org.opendaylight.protocol.bgp.parser.BGPSessionListener;
-import org.opendaylight.protocol.bgp.rib.impl.BGPSessionImpl;
 import org.opendaylight.protocol.framework.ReconnectStrategy;
 
 /**
@@ -27,6 +27,6 @@ public interface BGPDispatcher {
         * @param parser BGP message parser
         * @return client session
         */
-       Future<BGPSessionImpl> createClient(InetSocketAddress address, BGPSessionPreferences preferences, BGPSessionListener listener,
+       Future<? extends BGPSession> createClient(InetSocketAddress address, BGPSessionPreferences preferences, BGPSessionListener listener,
                        final ReconnectStrategy strategy);
 }